config

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

commit 45bc47c926e61269fec36681b79e3de30c709804
parent 6122d8ef86e5b14a5a674cae7eaf6f4da08a6ce4
Author: jacobsGit <JacobDoesLinux@protonmail.com>
Date:   Sun, 12 Jan 2020 11:13:22 -0800

mainly adding aliases

Diffstat:
Mzsh/.zsh-completion/_note | 2++
Mzsh/.zshrc | 73++++++++++++++++++++++++++++++++++---------------------------------------
2 files changed, 36 insertions(+), 39 deletions(-)

diff --git a/zsh/.zsh-completion/_note b/zsh/.zsh-completion/_note @@ -7,3 +7,5 @@ cd "$HOME/.notes/" _arguments\ '*: :_files' + + diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -1,12 +1,5 @@ # vim: foldmethod=marker source "$HOME/.profile" - -# st fix from FAQ -function zle-line-init () { echoti smkx } -function zle-line-finish () { echoti rmkx } -zle -N zle-line-init -zle -N zle-line-finish - #>completion {{{ alias ls='ls --color=always --group-directories-first' @@ -14,24 +7,27 @@ fpath=(~/.zsh-completion $fpath) autoload autoload -Uz compinit zmodload zsh/complist -setopt globdots + +# options +setopt noglobdots +setopt COMPLETE_ALIASES zstyle :compinstall filename '/home/jacob/.zshrc' zstyle ':completion:*' menu select bindkey -M menuselect '^[[Z' reverse-menu-complete -setopt COMPLETE_ALIASES compinit # }}} #>global variables {{{ -PATH=/opt/cocos2d-x/tools/cocos2d-console/bin/:$PATH +#PATH=/opt/cocos2d-x/tools/cocos2d-console/bin/:$PATH PATH=$HOME/bin:$PATH PATH=$HOME/projects/projects.bin:$PATH -PATH=$HOME/.xmobar:$PATH +#PATH=$HOME/.xmobar:$PATH +PATH=$HOME/.config/bspwm/bspc-utils/:$PATH export PATH export TERMINAL='st' @@ -92,8 +88,8 @@ fi #>history {{{ HISTFILE=~/.histfile -HISTSIZE=15000 -SAVEHIST=15000 +HISTSIZE=150000 +SAVEHIST=150000 # }}} #>alias {{{ @@ -123,42 +119,33 @@ SAVEHIST=15000 bindkey -M isearch " " magic-space # normal space during searches # end -# - function vimexec() { - # does not work if you set options in vim - touch "$1" - chmod +x "$1" - vim "$1" - } - + - alias notify='notify-send-replace' - ealias stl='systemctl' - alias ncmpcpp='ncmpcpp -q' - alias grep='grep --color' + # GNU / Basic Utilities alias sudo='sudo -E' + alias grep='grep --color' + alias ls='ls --hide 'Downloads' --color=always --group-directories-first' alias mv='mv --no-clobber' alias cp='cp --no-clobber' - alias standby='xset dpms force standby' - alias cdr='cd "$(printf "$PWD" | rev | cut -d '/' -f 2-99 | rev)"' - + alias tmux='tmux -u' alias suspend='systemctl suspend' alias hibernate='systemctl hibernate' - + + # Program Extentions alias pacman='pacman-c' - alias ls='ls --hide 'Downloads' --color=always --group-directories-first' + alias cdr='cd "$(printf "$PWD" | rev | cut -d '/' -f 2-99 | rev)"' - 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' - alias help='man' - alias webcam='mpv av://v4l2:/dev/video0' + # Etc + alias ncmpcpp='ncmpcpp -q' alias meta='exiftool' + alias clips='note clips' + alias cfg='config' + + + # functions + function gamma(){xrandr --output "$(xrandr --listactivemonitors | tail -n 1 | cut -d '*' -f 2 | awk '{print $1}')" --gamma $1} - function gamma() { xrandr --output "$(xrandr --listactivemonitors | tail -n 1 | cut -d '*' -f 2 | awk '{print $1}')" --gamma $1 } #}}} #>prompt {{{ @@ -189,7 +176,7 @@ RPROMPT='' 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=cyan,underliine # don't know what it does +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 @@ -198,11 +185,19 @@ ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=red # unknown comand 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') 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} # }}}