1 2 3 4 5 6 7 8 9 10
setopt prompt_subst PROMPT='%K{cyan}%F{black}%m%k%f %~ %% ' # For tramp (emacs). if [ "$TERM" = "dumb" ]; then unset PROMPT PS1='$ ' unsetopt zle fi