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="
e[1;37m[e[me[1;32mue[me[1;33m@e[me[1;35mhe[m e[4mwe[me[1;37m]e[me[1;36me[m
\$ "
PS1="[%10F%n%f%11F@%f%12F%m%f %11F%1~%f]"$'
'"$ "

原文地址:https://www.cnblogs.com/bregman/p/11650449.html