diff options
Diffstat (limited to '')
-rw-r--r-- | zsh/.zsh/prompt.zsh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/zsh/.zsh/prompt.zsh b/zsh/.zsh/prompt.zsh index 8035914..4203929 100644 --- a/zsh/.zsh/prompt.zsh +++ b/zsh/.zsh/prompt.zsh @@ -29,6 +29,7 @@ COLOR_USER="%F{cyan}" COLOR_NORMAL="%F{white}" PROMPT_STYLE="classic" + #█▓▒░ allow functions in the prompt setopt PROMPT_SUBST autoload -Uz colors && colors @@ -46,7 +47,14 @@ GIT_PROMPT() { test=$(git rev-parse --is-inside-work-tree 2> /dev/null) if [ ! "$test" ] then - [[ "$PROMPT_STYLE" == "ascii" ]] && echo "$reset_color%F{cyan}▒░" + case "$PROMPT_STYLE" in + ascii) + echo "$reset_color%F{cyan}▒░" + ;; + arrows) + echo "$reset_color%F{cyan}" + ;; + esac return fi ref=$(git name-rev --name-only HEAD | sed 's!remotes/!!' 2> /dev/null) @@ -73,6 +81,9 @@ GIT_PROMPT() { ascii) echo "%{$bg[magenta]%}%F{cyan}▓▒░ %F{black}${ref}${dirty}${stat} $reset_color%F{magenta}▒░" ;; + arrows) + echo "%{$bg[magenta]%}%F{cyan} %F{black}${ref}${dirty}${stat} $reset_color%F{magenta}" + ;; *) echo "${USER_LEVEL}─[${COLOR_NORMAL}"${ref}${dirty}${stat}"${USER_LEVEL}]" ;; @@ -84,6 +95,11 @@ ascii) PROMPT='%{$bg[cyan]%} %F{black}%~ $(GIT_PROMPT)$reset_color %f' ;; +#█▓▒░ arrows +arrows) +PROMPT='%{$bg[cyan]%}%F{black} %~ $(GIT_PROMPT)$reset_color +%f' +;; #█▓▒░ ninja ninja) PROMPT='%F{white} @@ -98,8 +114,8 @@ dual) PROMPT='${USER_LEVEL}┌[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT) ${USER_LEVEL}└─ - %f' ;; -#█▓▒░ minimal +#█▓▒░ classic *) -PROMPT='${USER_LEVEL}[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT)── -%f ' +PROMPT='${USER_LEVEL}[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT)── - %f' ;; esac |