Moved exit code info to RPROMPT

This commit is contained in:
Thomas Kolb 2015-01-03 17:32:54 +01:00
parent c58777067d
commit 95fcc4645e
2 changed files with 6 additions and 2 deletions

View file

@ -76,4 +76,6 @@ 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%} ' PS1=$'%{\e[30m%}%(!.%{\e[41m%}.%{\e[42m%})%n@%m %{\e[1;37m%}%{\e[44m%} %~ %{\e[49m\e[0;34m%}▶%{\e[0m%} '
RPROMPT=$'%(?.%{\e[32m%}.%{\e[31m%})◀%{\e[30m%}%(?.%{\e[42m%} ✔ .%{\e[41m%} ✘ [%?] )%{\e[0m%}'

View file

@ -12,7 +12,9 @@ setopt prompt_subst
# Set prompt # Set prompt
#PS1=$'%{\e[01;32m%}%n@%m%{\e[01;34m%} %~%{\e[01;33m%}$(parse_git_branch) %{\ek\e\\%}%{\e[00m%}%(!.#.$) ' #PS1=$'%{\e[01;32m%}%n@%m%{\e[01;34m%} %~%{\e[01;33m%}$(parse_git_branch) %{\ek\e\\%}%{\e[00m%}%(!.#.$) '
PS1=$'%{\e[30m%}%(?.%{\e[42m%} ✔ .%{\e[41m%} ✘ [%?] )%{\e[42m%} %n@%m %{\e[43m%}$(parse_git_branch)%{\e[1;37m%}%{\e[44m%} %~ %{\e[49m\e[0;34m%}▶%{\e[0m%} ' PS1=$'%{\e[30m%}%{\e[42m%}%n@%m %{\e[43m%}$(parse_git_branch)%{\e[1;37m%}%{\e[44m%} %~ %{\e[49m\e[0;34m%}▶%{\e[0m%} '
RPROMPT=$'%(?.%{\e[32m%}.%{\e[31m%})◀%{\e[30m%}%(?.%{\e[42m%} ✔ .%{\e[41m%} ✘ [%?] )%{\e[0m%}'
# aliases # aliases
alias q3defrag="/opt/quake3/ioquake3 +set fs_game defrag" alias q3defrag="/opt/quake3/ioquake3 +set fs_game defrag"