# HG changeset patch # User Oleksandr Gavenko # Date 1486988511 -7200 # Node ID 54d42c57cc4d579b43c4d656bfa61dffe1bffe21 # Parent b1536ac2ff88f4b41d647f24a1c9010d3e0c5d7f Improve zsh prompt. diff -r b1536ac2ff88 -r 54d42c57cc4d .zshrc --- a/.zshrc Sun Feb 12 14:21:32 2017 +0200 +++ b/.zshrc Mon Feb 13 14:21:51 2017 +0200 @@ -7,7 +7,14 @@ . ~/.env fi -PS1='zsh# ' +PS1=$'%?|%n@%m %~\nzsh# ' +PS2='> ' +case "$TERM" in + xterm*|eterm-color|screen|linux) + PS1=$'\n%F{cyan}%?|%F{red}%n%F{magenta}@%m %F{cyan}%~\n%F{red}%Bzsh#%b%f ' + PS2=$'%F{green}> %f' + ;; +esac HISTFILE=~/.zsh_history HISTSIZE=10000