commit 452b8b41c59dc5801f2a46cb6abb47e08d9e0fbb
parent 5c08a2cd7286c47d08c2e738f8a4e1b37a8e516d
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date: Wed, 18 Dec 2019 17:04:51 -0800
syntax highlighting tweaks
Diffstat:
| M | zsh/.zshrc | | | 39 | +++++++++------------------------------ |
1 file changed, 9 insertions(+), 30 deletions(-)
diff --git a/zsh/.zshrc b/zsh/.zshrc
@@ -1,6 +1,6 @@
# vim: foldmethod=marker
source "$HOME/.profile"
-#> completion {{{
+#>completion {{{
alias ls='ls --color=always --group-directories-first'
autoload
autoload -Uz compinit
@@ -15,7 +15,7 @@ setopt COMPLETE_ALIASES
compinit
# }}}
-#> global variables {{{
+#>global variables {{{
PATH=$HOME/bin:$PATH
PATH=$HOME/projects/projects.bin:$PATH
PATH=$HOME/.xmobar:$PATH
@@ -110,22 +110,19 @@ SAVEHIST=1000
bindkey -M isearch " " magic-space # normal space during searches
# end
+ ealias diff=' diff -Naur'
alias mv='mv --no-clobber'
alias cp='cp --no-clobber'
- ealias diff=' diff -Naur'
+
alias suspend='systemctl suspend'
alias hibernate='systemctl hibernate'
alias restart='sudo systemctl restart'
- function background() { "$@ &" ; disown }
alias pacman='pacman-colors'
alias ls='ls --color=always --group-directories-first'
- function lcount() { cat -n $1 | tail -n 1 | awk '{print $1}' }
-
-
- function icat() { kitty +kitten icat "$@";}
- function dp() { xrandr --output DP-4 --brightness .$1;}
+ function icat() { kitty +kitten icat "$@" }
+ function dp() { xrandr --output DP-4 --brightness .$1 }
function tar-gz() { tar -xvzf $1;}
function tar-xz() { tar -xvJf $1;}
alias tmux='tmux -u'
@@ -139,30 +136,23 @@ SAVEHIST=1000
#>prompt {{{
-
-
-
-
# 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
@@ -176,29 +166,18 @@ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zs
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) # include these
ZSH_HIGHLIGHT_STYLES[precommand]=fg=cyan,underliine # don't know what it does
-
#ZSH_HIGHLIGHT_STYLES[alias]=fg=blue,underline # alias : commented because it wasn't properly detecting aliases
-ZSH_HIGHLIGHT_STYLES[arg0]=fg=blue # command
-ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=cyan # unknown comand
-
+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 # &&;
-
- # costom
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:*:*:cd:*' list-colors '36'
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
# }}}
-
-#>extra {{{
-_trap_exit() { tmux kill-session -t $$; }
-trap _trap_exit EXIT
-
-#}}}