ZhangZhihui's Blog  

set -o vi

 

bash:

export PS1="[\u@\h:\w]"

 

zsh:

export PS1="
%D{%Y-%m-%d} %t
[%n@(\$(hostname -s)):%d]$>"

 

posted on 2019-11-13 09:07  ZhangZhihuiAAA  阅读(167)  评论(0编辑  收藏  举报