zsh

新mac 用了 zsh, 代替bash.

chsh -s /bin/zsh
  • 配置文件的部分内容与.bash_profile的下不一致, 需要修改 .zprofile
#shortcuts
if [ -t 1 ]; then
     # bind '"\e[A":history-search-backward'
     # bind '"\e[B":history-search-forward'
     bindkey '\e[A' history-search-backward
     bindkey '\e[B' history-search-forward
fi

#PS1="\n\e[1;37m[\e[m\e[1;32m\u\e[m\e[1;33m@\e[m\e[1;35m\h\e[m \e[4m\w\e[m\e[1;37m]\e[m\e[1;36m\e[m\n\\$ "
PS1="[%10F%n%f%11F@%f%12F%m%f %11F%1~%f]"$'\n'"\$ "

posted @ 2019-10-10 20:34  bregman  阅读(261)  评论(0编辑  收藏  举报