commit 5742a0556ca7ca3db534fb9181d832e8fc4d0aab
parent 89031d7ed1f2021552cb494d5ed79e71c21b2a7e
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date: Sun, 8 Dec 2019 22:49:54 -0800
added prompts
Diffstat:
| M | zsh/.zshrc | | | 48 | +++++++++++++++++++++++++++++++++++++----------- |
1 file changed, 37 insertions(+), 11 deletions(-)
diff --git a/zsh/.zshrc b/zsh/.zshrc
@@ -16,9 +16,11 @@ compinit
#>includes {{{
[[ -f ~/.shell-alias ]] && . ~/.shell-alias
-export PATH=$HOME/bin:$PATH
-export PATH=$HOME/.spoof/:$PATH
-export PATH=$HOME/.xmobar/scripts:$PATH
+PATH=$HOME/bin:$PATH
+PATH=$HOME/projects/projects.bin:$PATH
+PATH=$HOME/.xmobar/scripts:$PATH
+export PATH
+
export EDITOR='vim'
# }}}
@@ -27,6 +29,8 @@ bindkey -v
bindkey "^[[1;5C" forward-word #crtl+left
bindkey "^[[1;5D" backward-word #crtl+rigth
+bindkey '^H' backward-delete-word #crtl+backspace
+
typeset -g -A key
key[Home]="${terminfo[khome]}"
@@ -55,6 +59,8 @@ key[ShiftTab]="${terminfo[kcbt]}"
[[ -n "${key[PageUp]}" ]] && bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history
[[ -n "${key[PageDown]}" ]] && bindkey -- "${key[PageDown]}" end-of-buffer-or-history
[[ -n "${key[ShiftTab]}" ]] && bindkey -- "${key[ShiftTab]}" reverse-menu-complete
+[[ -n "${key[Ctrl+Backspace]}" ]] && bindkey -- "${key[Crtl+Backspace]}" delete-word
+[[ -n "${key[Ctrl+Backspace]}" ]] && bindkey -- "${key[Crtl+Backspace]}" delete-word
# Finally, make sure the terminal is in application mode, when zle is
# active. Only then are the values from $terminfo valid.
@@ -78,20 +84,40 @@ SAVEHIST=1000
# }}}
#>alias {{{
-
+
#}}}
#>prompt {{{
-RPROMPT='%F{236}%T %F{237}%n@%M%f'
-# ext ansi
-PROMPT='%?%F{4}────[%f%F{109}%~%F{4}]%f
-%F{4}└──%f'
-# ansi
-#PROMPT='
-#%?%F{1}[%F{109}%~%F{1}]%f
+
+
+
+# beutiful
+#RPROMPT='%F{236}%T %F{237}%n@%M%f'
+#PROMPT='%?%F{4}────[%f%F{109}%~%F{4}]%f
+#%F{4}└──%f'
+
+
+
+# simple
+#RPROMPT='%F{236}%T %F{237}%n@%M%f'
+#PROMPT='%?%F{4} >>[%f%F{109}%~%F{4}]%f
+#%F{4}^->%f'
+
+
+
+# simple oneline
+PROMPT='%?%F{4} ->%f'
+RPROMPT='%F{4}[%f%F{109}%~%F{4}]%f'
+
+
+
+# minimal
+#RPROMPT=''
+#PROMPT='%?%F{1}[%F{109}%~%F{1}]%f
#'
+
# }}}
#>syntax hightlighting {{{