diff options
Diffstat (limited to '.config/zsh')
| -rw-r--r-- | .config/zsh/themes/ewout.zsh-theme | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.config/zsh/themes/ewout.zsh-theme b/.config/zsh/themes/ewout.zsh-theme index 01f8fbe..e44e887 100644 --- a/.config/zsh/themes/ewout.zsh-theme +++ b/.config/zsh/themes/ewout.zsh-theme @@ -1,6 +1,10 @@ autoload colors && colors setopt prompt_subst +local reset="%{$reset_color%}" +local red="%{${fg[red]}%}" +local green="%{${fg[green]}%}" + __git() { command -v git > /dev/null || return [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == true ]] && echo " $(git branch --show-current)" @@ -18,12 +22,12 @@ __exitStatus() { __exitFace() { code=$1 - [ $1 = 0 ] && echo "$fg[green]:3$reset_color" - [ $1 != 0 ] && echo "$fg[red]D:$reset_color" + [ $1 = 0 ] && echo "${green}:3$reset" + [ $1 != 0 ] && echo "${red}D:$reset" } __prompt() { - echo "%# " + echo '%# ' } __generate_prompt() { |
