aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxero harrison <x@xero.nu>2017-02-10 11:24:32 -0500
committerGitHub <noreply@github.com>2017-02-10 11:24:32 -0500
commit32b97465570cc5b758f399d96c95586390fd2e4f (patch)
treea764179d2e6f7e87a1b95d2c69f030662e3a6c68
parent85107d22ed192d08dc0b0d5a6c505f3dbc57295f (diff)
downloaddotfiles_ascii-32b97465570cc5b758f399d96c95586390fd2e4f.tar.xz
dotfiles_ascii-32b97465570cc5b758f399d96c95586390fd2e4f.zip
add arrow prompt type, idk why...
Diffstat (limited to '')
-rw-r--r--zsh/.zsh/prompt.zsh22
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