Powerline-like ZSH prompt

This commit is contained in:
Thomas Kolb 2015-01-03 16:48:04 +01:00
parent 7df00f4a9e
commit d08e1c4d6c

View file

@ -15,6 +15,12 @@ bindkey "\e[2~" quoted-insert
bindkey "\eOc" forward-word bindkey "\eOc" forward-word
bindkey "\eOd" backward-word bindkey "\eOd" backward-word
# Konsole
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "\e[1;5C" forward-word
bindkey "\e[1;5D" backward-word
# tmux # tmux
bindkey "\e[1~" beginning-of-line bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line bindkey "\e[4~" end-of-line
@ -68,5 +74,6 @@ if [[ "$TERM" != "dumb" ]]; then
fi fi
# Set prompt # Set prompt
PS1=$'%(!.%{\e[01;32m%}.%{\e[01;31m%})%(?..%? )%(!.%{\e[01;31m%}.%{\e[01;32m%})%n@%m%{\e[01;34m%} %~ %{\e[00m%}%(!.#.$) ' #PS1=$'%(!.%{\e[01;32m%}.%{\e[01;31m%})%(?..%? )%(!.%{\e[01;31m%}.%{\e[01;32m%})%n@%m%{\e[01;34m%} %~ %{\e[00m%}%(!.#.$) '
PS1=$'%{\e[30m%}%(?.%{\e[42m%} ✔ .%{\e[41m%} ✘ [%?] )%(!.%{\e[41m%}.%{\e[42m%}) %n@%m %{\e[1;37m%}%{\e[44m%} %~ %{\e[49m\e[0;34m%}▶%{\e[0m%} '