commit a29fd95720318ce328253ab1f845061c0808d255
parent ce0a9e61990bc07d6780f5ba27981dbc6ed657b2
Author: pyratebeard <root@pyratebeard.net>
Date: Mon, 15 Apr 2019 13:05:41 +0100
fixed typeset in keybindings. replaced missing if statement
Diffstat:
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/zsh/.zsh/keybindings.zsh b/zsh/.zsh/keybindings.zsh
@@ -1,5 +1,5 @@
# KEYBINDINGS
-Typeset -A key
+typeset -A key
key[Home]=${terminfo[khome]}
key[End]=${terminfo[kend]}
diff --git a/zsh/.zsh/prompt.zsh b/zsh/.zsh/prompt.zsh
@@ -35,6 +35,18 @@ fi
# git prompt
GIT_PROMPT() {
test=$(git rev-parse --is-inside-work-tree 2> /dev/null)
+ if [ ! "$test" ]
+ then
+ 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)
dirty="" && [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && dirty=$ICO_DIRTY
stat=$(git status | sed -n 2p)