diff options
| author | ewy1 <ewy0@protonmail.com> | 2025-01-14 11:40:24 +0100 |
|---|---|---|
| committer | ewy1 <ewy0@protonmail.com> | 2025-01-14 11:40:24 +0100 |
| commit | dc1dadc4617ab3e2015e26f617d8a0be30032ad4 (patch) | |
| tree | 7f2e173fd52c0c1deb90b748c3b4a295b82e0f60 /.config/zsh/themes/ewout.zsh-theme | |
| parent | b932c24a206f4bf8f33b470075902b1aae4594ab (diff) | |
add system specific mako config
Diffstat (limited to '.config/zsh/themes/ewout.zsh-theme')
| -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() { |
