commit 1d823642a44225b7fb171670dc940f5042e07765
parent a41fbfc2f80682bea21dd25a4493f46f2861852b
Author: jacob <jacobdoeslinux@protonmail.com>
Date: Tue, 12 Nov 2019 01:24:57 -0800
silly mistake
Diffstat:
| M | zsh/.zshrc | | | 62 | ++++++++++++++++++++++++++++++++++++-------------------------- |
1 file changed, 36 insertions(+), 26 deletions(-)
diff --git a/zsh/.zshrc b/zsh/.zshrc
@@ -1,20 +1,40 @@
-source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-export PATH=$HOME/bin:$HOME/.xmobar/scripts/:$PATH
+# history
+HISTFILE=~/.histfile
+HISTSIZE=5000
+SAVEHIST=1000
+
+
+bindkey -v
-CASE_SENSITIVE="false"
-HYPHEN_INSENSITIVE="true"
-DISABLE_AUTO_UPDATE="true"
-DISABLE_UPDATE_PROMPT="false"
+# completion
+autoload -Uz compinit
+zmodload zsh/complist
+zstyle :compinstall filename '/home/jacob/.zshrc'
+ zstyle ':completion:*' menu select
+ bindkey -M menuselect '^[[Z' reverse-menu-complete
+ setopt COMPLETE_ALIASES
+compinit
-# Misc
-DISABLE_AUTO_TITLE="true"
+# syntax hightlighting
+source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=cyan,underline
+ZSH_HIGHLIGHT_STYLES[precommand]=fg=cyan,underline
+ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan
+ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
+
+ZSH_HIGHLIGHT_PATTERNS=('rm -rf *' 'fg=white,bold,bg=red')
+ZSH_HIGHLIGHT_PATTERNS=('sudo' 'fg=white,bold')
+ zstyle ':completion:*:options' list-colors '=^(-- *)=32'
+ zstyle ':completion:*:*:kill:*' list-colors '=(#b) #([0-9]#)*( *[a-z])*=34=31=33'
+ zstyle ':completion:*:*:cd:*:*' list-colors
+zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
# Functions
example() {
printf "this is an example\n"
@@ -22,31 +42,21 @@ printf "this is an example\n"
}
-zstyle ':completion:*:*:xdvi:*' menu yes select
-zstyle ':completion:*:*:xdvi:*' file-sort time
-
# History
-
-
-
-
-# primary prompt
-PROMPT='tim'
-RPROMPT2='user@host'
-
-
-
+# prompt
+PROMPT='
+%?────%F{109} %~%F{237}%f
+└── %F{103}»%f'
+
+RPROMPT='%F{236}%T %F{237}%n@%M%f'
# Finishing up
[[ -f ~/.shell-alias ]] && . ~/.shell-alias
-if [[ -n $SSH_CONNECTION ]]; then
- export EDITOR='vim'
-else
- export EDITOR='vim'
-fi
+export PATH=$HOME/bin:$HOME/.xmobar/scripts/:$PATH
+export EDITOR='vim'