X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.zshrc;h=b182e0ad76f8e4cf75c65319ec726434740d645d;hb=a111022e5d56d884530ea415925b774feb357b60;hp=8258f1abb5e1130d6b243806d88f81065fff8c8f;hpb=ec5488d4bf56e76091e28504647f6ab03970889b;p=user%2Fhenk%2Fvcsh%2Fzsh.git diff --git a/.zshrc b/.zshrc index 8258f1a..b182e0a 100644 --- a/.zshrc +++ b/.zshrc @@ -10,6 +10,9 @@ export HISTFILE=~/.zsh_history export HISTSIZE=1000000000 export SAVEHIST=1000000000 +export ANSIBLE_NOCOWS=1 +export ANSIBLE_STRATEGY=mitogen_linear + # what is that for exactly? maybe taskwarrior? or timewarrior? REPORTTIME=10 @@ -22,13 +25,21 @@ export YSU_MODE=ALL # I want sbin executables available export PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin +export PATH=${PATH}:~/bin + +# colors for newt/whiptail (for debconf, needrestart, etc.) +# works better with selenized colorscheme +export NEWT_COLORS='checkbox=yellow,;roottext=yellow,' + +# where zsh looks for functions +fpath=(~/.zsh_functions $fpath) # hashed directories are usually independent and standalone # so they can stay at the top hash -d diary=~/Data/henksfiles/workinprogress/Dokumente/diary hash -d lifedocs=~/Data/henksfiles/workinprogress/Dokumente/Leben -hash -d bewerbung=~/Data/henksfiles/workinprogress/Dokumente/bewerbung +hash -d bewerbung=~/Data/personal/henk/workinprogress/Dokumente/Arbeit/bewerbung hash -d rezepte=~/Data/henksfiles/workinprogress/Dokumente/rezepte/cuisine hash -d templates=~/Data/henksfiles/workinprogress/templates hash -d gitignore=~/Data/public/software/gitignore @@ -43,6 +54,18 @@ source ~/.zsh_aliases source ~/.zsh_qemu +# load plugin manager after all 'static' stuff is done +source ~/Data/public/software/zinit/zinit.zsh + + +# mostly static stuff, env vars +zinit load 'https://github.com/joel-porquet/zsh-dircolors-solarized' +zinit load "https://github.com/greymd/tmux-xpanes" + + +# load sane options plugin before setting my own options +zinit load 'https://github.com/willghatch/zsh-saneopt' + # options are usually independent and standalone # so they can stay at the top setopt AUTO_CD @@ -82,14 +105,13 @@ setopt NO_BG_NICE #setopt LONG_LIST_JOBS +# load before completion system initialization +zinit load 'https://github.com/zsh-users/zsh-completions' + # initialize completion system before loading plugins and external configs source ~/.zsh_comprc -# TODO break this up -source ~/.zsh_zinit - - # TODO reconsider this # source /usr/share/autojump/autojump.sh @@ -99,7 +121,6 @@ source ~/.zsh_zinit # * follow symlinks # * work only on plainfiles # * take only the filename part without dir -fpath=(~/.zsh_functions $fpath) autoload ~/.zsh_functions/[^_]*(-.:t) @@ -115,6 +136,13 @@ bindkey -M vicmd '^X^E' edit-command-line bindkey -M viins '^X^E' edit-command-line +#this mainly sets vars, binds keys, does zle stuff +zinit load 'https://github.com/laurenkt/zsh-vimto' + +# functions and an autoload, should be fine here +zinit load 'https://github.com/MichaelAquilina/zsh-you-should-use' + + # source ~/.zsh_taskwarrior # source ~/.zsh_functions # source ~/.zsh_functions_media @@ -128,6 +156,8 @@ source ~/.zsh_local source ~/.env_* +typeset -U path + #zle -N zle-line-init #zle -N zle-keymap-select @@ -136,6 +166,15 @@ source ~/.env_* # so they go more to the bottom +# should probably be closer to the bottom than the top? +zinit load 'https://github.com/nojhan/liquidprompt' + + +# needs to be loaded close to the end because it hooks into other stuff +# see https://github.com/zsh-users/zsh-syntax-highlighting +zinit load 'https://github.com/zsh-users/zsh-syntax-highlighting' + + # commands to run after initialization is complete #task awaiting cat ~/.motd