config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 2857dc7a8c8e7317624c85f6bc22bd2ff1ce979a
parent f52a400c4ddabd472bcb7db6f561447f34b14e8b
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date:   Tue, 14 Jan 2020 12:46:35 -0800

made bsd compadable(ish)

removed [d backward delete word

Diffstat:
Mzsh/.zshrc | 50+++++++++++++++++++++++++++-----------------------
1 file changed, 27 insertions(+), 23 deletions(-)

diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -41,8 +41,8 @@ export EDITOR='vim' bindkey -v bindkey "^[[1;5C" forward-word #crtl+left bindkey "^[[1;5D" backward-word #crtl+rigth -bindkey "[d" backward-delete-word #crtl+backspace -bindkey "[M" delete-word #crtl+backspace +bindkey "^W" backward-delete-word #crtl+backspace +bindkey "^E" delete-word #crtl+backspace # characters delete word wont care about WORDCHARS='\*?.[]~&;!#$%^(){}<>' @@ -96,6 +96,7 @@ HISTSIZE=150000 SAVEHIST=150000 # }}} +if [ $(uname | tail -c 4 ) != 'BSD' ]; then #>alias {{{ # expansion funciton typeset -a ealiases @@ -152,6 +153,7 @@ SAVEHIST=150000 function gamma(){xrandr --output "$(xrandr --listactivemonitors | tail -n 1 | cut -d '*' -f 2 | awk '{print $1}')" --gamma $1} #}}} +fi #>prompt {{{ @@ -177,32 +179,34 @@ RPROMPT='' # }}} - #>syntax hightlighting {{{ -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +if [ $(uname | tail -c 4 ) != 'BSD' ]; then +#>syntax hightlighting {{{ + source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) # include these -ZSH_HIGHLIGHT_STYLES[precommand]=fg=white,bold # exec, sudo, etc + ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) # include these + ZSH_HIGHLIGHT_STYLES[precommand]=fg=white,bold # exec, sudo, etc -#ZSH_HIGHLIGHT_STYLES[alias]=fg=blue,underline # alias : commented because it wasn't properly detecting aliases -ZSH_HIGHLIGHT_STYLES[arg0]=fg=blue,bold # command -ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=red # unknown comand + #ZSH_HIGHLIGHT_STYLES[alias]=fg=blue,underline # alias : commented because it wasn't properly detecting aliases + ZSH_HIGHLIGHT_STYLES[arg0]=fg=blue,bold # command + ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=red # unknown comand -ZSH_HIGHLIGHT_STYLES[redirection]=fg=cyan,bold # <|> -ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=white,bold # &&; + ZSH_HIGHLIGHT_STYLES[redirection]=fg=cyan,bold # <|> + ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=white,bold # &&; -# Colors For Specific Commands -ZSH_HIGHLIGHT_PATTERNS=('rm -rf *' 'fg=white,bold,bg=red') -ZSH_HIGHLIGHT_PATTERNS=('sudo' 'fg=white,bold') -ZSH_HIGHLIGHT_PATTERNS=('pacman' 'fg=yellow,bold') + # Colors For Specific Commands + ZSH_HIGHLIGHT_PATTERNS=('rm -rf *' 'fg=white,bold,bg=red') + ZSH_HIGHLIGHT_PATTERNS=('sudo' 'fg=white,bold') + ZSH_HIGHLIGHT_PATTERNS=('pacman' 'fg=yellow,bold') - zstyle ':completion:*:options' list-colors '=^(-- *)=32' - zstyle ':completion:*:*:cd:*' list-colors '36' - zstyle ':completion:*:*:ls:*' list-colors '36' - zstyle ':completion:*:*:rm:*' list-colors '36' - zstyle ':completion:*:*:cp:*' list-colors '36' - zstyle ':completion:*:*:mv:*' list-colors '36' + zstyle ':completion:*:options' list-colors '=^(-- *)=32' + zstyle ':completion:*:*:cd:*' list-colors '36' + zstyle ':completion:*:*:ls:*' list-colors '36' + zstyle ':completion:*:*:rm:*' list-colors '36' + zstyle ':completion:*:*:cp:*' list-colors '36' + zstyle ':completion:*:*:mv:*' list-colors '36' -zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} -# }}} + zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} + # }}} +fi