1 # zprof only makes sense at the very top
5 # exports are usually independent and standalone
6 # so they can stay at the top
8 # where to write history
9 export HISTFILE=~/.zsh_history
10 export HISTSIZE=1000000000
11 export SAVEHIST=1000000000
13 export ANSIBLE_NOCOWS=1
14 export ANSIBLE_STRATEGY=mitogen_linear
16 # what is that for exactly? maybe taskwarrior? or timewarrior?
19 ## define word characters (for stuff like backward-word, forward-word, backward-kill-word,..)
20 ## these are NOT separators but chars considered part of a word
21 #WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' # the default
26 # I want sbin executables available
27 export PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin
28 export PATH=${PATH}:~/bin
30 # colors for newt/whiptail (for debconf, needrestart, etc.)
31 # works better with selenized colorscheme
32 export NEWT_COLORS='checkbox=yellow,;roottext=yellow,'
34 # where zsh looks for functions
35 fpath=(~/.zsh_functions $fpath)
38 # hashed directories are usually independent and standalone
39 # so they can stay at the top
40 hash -d diary=~/Data/henksfiles/workinprogress/Dokumente/diary
41 hash -d lifedocs=~/Data/henksfiles/workinprogress/Dokumente/Leben
42 hash -d bewerbung=~/Data/personal/henk/workinprogress/Dokumente/Arbeit/bewerbung
43 hash -d rezepte=~/Data/henksfiles/workinprogress/Dokumente/rezepte/cuisine
44 hash -d templates=~/Data/henksfiles/workinprogress/templates
45 hash -d gitignore=~/Data/public/software/gitignore
46 hash -d doc=/usr/share/doc
47 hash -d TODO=~/Data/henksfiles/TODO/
48 hash -d fortunes=~/Data/henksfiles/workinprogress/Dokumente/fortunes/
51 # aliases are usually independent and standalone
53 # TODO break this up or make functions or get rid?
57 # load plugin manager after all 'static' stuff is done
58 source ~/Data/public/software/zinit/zinit.zsh
61 # mostly static stuff, env vars
62 zinit load 'https://github.com/joel-porquet/zsh-dircolors-solarized'
63 zinit load "https://github.com/greymd/tmux-xpanes"
66 # options are usually independent and standalone
67 # so they can stay at the top
76 setopt NUMERIC_GLOB_SORT
77 setopt RC_EXPAND_PARAM
78 #setopt WARN_CREATE_GLOBAL
81 # remove previous entries from history
82 setopt HIST_IGNORE_ALL_DUPS
83 # do not write lines starting with a space to history file
84 setopt HIST_IGNORE_SPACE
85 # Remove superfluous blanks
86 setopt HIST_REDUCE_BLANKS
87 # expand history expansion for verification
89 # save timestamp and runtime as well
90 setopt EXTENDED_HISTORY
91 # write line to history file when finished, not when started, to have correct runtime
92 setopt INC_APPEND_HISTORY_TIME
98 setopt PRINT_EXIT_VALUE
102 # display PID when suspending processes as well
103 setopt LONG_LIST_JOBS
104 # Report the status of background jobs immediately, rather than waiting until just before printing a prompt.
106 # Whenever a command completion or spelling correction is attempted, make sure the entire command path is hashed first. This makes the first completion slower but avoids false reports of spelling errors.
108 # If unset, the cursor is set to the end of the word if completion is started. Otherwise it stays there and completion is done from both ends.
109 setopt COMPLETE_IN_WORD
110 # use zsh field splitting
111 setopt NO_SH_WORD_SPLIT
112 # unset parameters should cause an error
113 # CONFLICTS WITH ZINIT
117 # load before completion system initialization
118 zinit load 'https://github.com/zsh-users/zsh-completions'
120 # initialize completion system before loading plugins and external configs
124 # TODO reconsider this
125 # source /usr/share/autojump/autojump.sh
128 # autoload all functions defined by me
129 # since only filenames are required we
131 # * work only on plainfiles
132 # * take only the filename part without dir
133 autoload ~/.zsh_functions/[^_]*(-.:t)
136 autoload -Uz vcs_info
141 # spawn editor on current command line
142 autoload -Uz edit-command-line
143 zle -N edit-command-line
144 bindkey -M vicmd '^X^E' edit-command-line
145 bindkey -M viins '^X^E' edit-command-line
148 #this mainly sets vars, binds keys, does zle stuff
149 zinit load 'https://github.com/laurenkt/zsh-vimto'
151 # functions and an autoload, should be fine here
152 zinit load 'https://github.com/MichaelAquilina/zsh-you-should-use'
155 # source ~/.zsh_taskwarrior
156 # source ~/.zsh_functions
157 # source ~/.zsh_functions_media
158 # source ~/.zsh_functions_taskwarrior
170 #zle -N zle-line-init
171 #zle -N zle-keymap-select
174 # keybindings might have been changed by plugins, etc.
175 # so they go more to the bottom
178 # should probably be closer to the bottom than the top?
179 zinit load 'https://github.com/nojhan/liquidprompt'
182 # needs to be loaded close to the end because it hooks into other stuff
183 # see https://github.com/zsh-users/zsh-syntax-highlighting
184 zinit load 'https://github.com/zsh-users/zsh-syntax-highlighting'
187 # commands to run after initialization is complete