history
来源:互联网 发布:淘宝7天下架什么意思 编辑:程序博客网 时间:2024/04/29 05:50
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
HISTSIZE=200000
# === Begin ====
datestamp_for_history(){
export bash_id=$(echo $PPID)
export username=$(whoami)
export workdir=$(echo $PWD)
export infohis=`history 1`
echo $username $bash_id $workdir $infohis >> $HOME/.history-timestamp
echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"
}
PS1="\[\033[01;31m\]\u@\[\033[01;33m\]\h.$add \[\033[0;31m\]\W\[\033[37;36m\]\$ \[\033[1;37m\]"
export PROMPT_COMMAND=datestamp_for_history
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
HISTSIZE=200000
# === Begin ====
datestamp_for_history(){
export bash_id=$(echo $PPID)
export username=$(whoami)
export workdir=$(echo $PWD)
export infohis=`history 1`
echo $username $bash_id $workdir $infohis >> $HOME/.history-timestamp
echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"
}
PS1="\[\033[01;31m\]\u@\[\033[01;33m\]\h.$add \[\033[0;31m\]\W\[\033[37;36m\]\$ \[\033[1;37m\]"
export PROMPT_COMMAND=datestamp_for_history
0 0
- history
- history
- history
- history
- history
- history
- history
- history
- history
- history
- history
- history !
- history
- history
- History
- history
- history
- history.go(),history.back(),history.forward()
- onActivityResult在Fragment没有回调的解决方法
- HDU 4161 Iterated Difference
- iOS开发——创建你自己的Framework
- 蓝桥杯的学习方向(电子类)
- 日常遇到小问题
- history
- 解决在EasyUI中使用百度地图出现不居中和坐标图标显示异常的问题(红色代码部分)
- iOS开发UI篇—popoverController使用注意
- Ajax请求中的async设置为false/true的区别
- MVC .NET的FormsAuthentication.SetAuthCookie在IE10中无效的问题
- 编程相关,OJ题常见错误,及做题总结
- 多线程并发流程控制之dispatch_group 有关函数
- hive集成MySql数据库
- android 下载zip文件并解压