更新centos PS1 高亮显示,加倍友好的显示,以及提醒要害信息,下令纪录与存储,切换目录自动显示路径

PS1展示:

history展示:

代码
file : /etc/bashrc

PS1="[${debian_chroot:+($debian_chroot)}\T - [\e[35m]\u[\e[m]@hostname - hostname -I|awk '{print $1}' [\e[31m]\w[\e[m]]\$ "
export USER_IP=who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'
export HISTTIMEFORMAT="[%F %T][whoami][${USER_IP}] "
export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });user=$(whoami); echo $(date "+%Y-%m-%d %H:%M:%S"):$user:pwd/:$msg ---- $(who am i); } >> /tmp/date +%F-hostname-whoami-history.log'
alias cd='cdp(){ cd $1;pwd;};cdp'

,

欧博亚洲电脑版下载

欢迎进入欧博亚洲电脑版下载(Allbet Game):www.aLLbetgame.us,欧博官网是欧博集团的官方网站。欧博官网开放Allbet注册、Allbe代理、Allbet电脑客户端、Allbet手机版下载等业务。

,