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 export TEXMFCNF=${HOME}/.texlive:
18 # what is that for exactly? maybe taskwarrior? or timewarrior?
21 ## define word characters (for stuff like backward-word, forward-word, backward-kill-word,..)
22 ## these are NOT separators but chars considered part of a word
23 #WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' # the default
28 # I want sbin executables available
29 export PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin
30 export PATH=${PATH}:~/bin
32 # colors for newt/whiptail (for debconf, needrestart, etc.)
33 # works better with selenized colorscheme
34 # everything that seems irrelevant is set to brown
36 # foreground seems irrelevant
37 NEWT_COLORS="${NEWT_COLORS};root=brown,blue"
38 # text in the root window
39 NEWT_COLORS="${NEWT_COLORS};roottext=yellow,blue"
41 # box/window/button shadows
42 NEWT_COLORS="${NEWT_COLORS};shadow=brown,black"
44 # boxes/windows themselves
45 NEWT_COLORS="${NEWT_COLORS};window=brown,lightgray"
47 NEWT_COLORS="${NEWT_COLORS};title=yellow,lightgray"
49 NEWT_COLORS="${NEWT_COLORS};border=gray,lightgray"
52 NEWT_COLORS="${NEWT_COLORS};button=black,red"
54 NEWT_COLORS="${NEWT_COLORS};compactbutton=black,lightgray"
55 # selected/active button
56 NEWT_COLORS="${NEWT_COLORS};actbutton=green,gray"
58 # checkbox itself and text
59 NEWT_COLORS="${NEWT_COLORS};checkbox=black,blue"
60 # selection marker for checkbox
61 NEWT_COLORS="${NEWT_COLORS};actcheckbox=yellow,gray"
63 # TODO FIXME: no clue what that is
64 NEWT_COLORS="${NEWT_COLORS};entry=yellow,brown"
65 # TODO FIXME: no clue what that is
66 NEWT_COLORS="${NEWT_COLORS};disentry=brown,yellow"
68 # TODO FIXME: no clue what that is
69 NEWT_COLORS="${NEWT_COLORS};label=yellow,red"
71 # unselected entries in menus
72 NEWT_COLORS="${NEWT_COLORS};listbox=lightgray,gray"
73 # selected entries in menus
74 NEWT_COLORS="${NEWT_COLORS};actsellistbox=yellow,blue"
75 # TODO FIXME: no clue what that is
76 NEWT_COLORS="${NEWT_COLORS};actlistbox=brown,red"
77 # TODO FIXME: no clue what that is
78 NEWT_COLORS="${NEWT_COLORS};sellistbox=black,brown"
80 NEWT_COLORS="${NEWT_COLORS};textbox=black,lightgray"
81 NEWT_COLORS="${NEWT_COLORS};acttextbox=brown,green"
83 # TODO FIXME: no clue what that is
84 NEWT_COLORS="${NEWT_COLORS};helpline=yellow,brown"
87 NEWT_COLORS="${NEWT_COLORS};emptyscale=red"
88 NEWT_COLORS="${NEWT_COLORS};fullscale=blue"
111 # where zsh looks for functions
112 fpath=(~/.zsh_functions $fpath)
115 # hashed directories are usually independent and standalone
116 # so they can stay at the top
117 hash -d diary=~/Data/henksfiles/workinprogress/Dokumente/diary
118 hash -d lifedocs=~/Data/henksfiles/workinprogress/Dokumente/Leben
119 hash -d bewerbung=~/Data/personal/henk/workinprogress/Dokumente/Arbeit/bewerbung
120 hash -d rezepte=~/Data/henksfiles/workinprogress/Dokumente/rezepte/cuisine
121 hash -d templates=~/Data/henksfiles/workinprogress/templates
122 hash -d gitignore=~/Data/public/software/gitignore
123 hash -d doc=/usr/share/doc
124 hash -d TODO=~/Data/henksfiles/TODO/
125 hash -d fortunes=~/Data/henksfiles/workinprogress/Dokumente/fortunes/
128 # aliases are usually independent and standalone
129 source ~/.zsh_aliases
130 # TODO break this up or make functions or get rid?
134 # load plugin manager after all 'static' stuff is done
135 # source ~/Data/public/software/zinit/zinit.zsh
136 source "${HOME}/.zgenom/zgenom.zsh"
137 # Check for plugin and zgenom updates every 7 days
138 # This does not increase the startup time.
142 # mostly static stuff, env vars
143 # zinit load 'https://github.com/joel-porquet/zsh-dircolors-solarized'
144 # zinit load "https://github.com/greymd/tmux-xpanes"
145 zgenom load 'https://github.com/joel-porquet/zsh-dircolors-solarized'
146 zgenom load "https://github.com/greymd/tmux-xpanes"
149 # options are usually independent and standalone
150 # so they can stay at the top
154 setopt AUTO_NAME_DIRS
159 setopt NUMERIC_GLOB_SORT
160 setopt RC_EXPAND_PARAM
161 #setopt WARN_CREATE_GLOBAL
164 # remove previous entries from history
165 setopt HIST_IGNORE_ALL_DUPS
166 # do not write lines starting with a space to history file
167 setopt HIST_IGNORE_SPACE
168 # Remove superfluous blanks
169 setopt HIST_REDUCE_BLANKS
170 # expand history expansion for verification
172 # save timestamp and runtime as well
173 setopt EXTENDED_HISTORY
174 # write line to history file when finished, not when started, to have correct runtime
175 setopt INC_APPEND_HISTORY_TIME
181 setopt PRINT_EXIT_VALUE
185 # display PID when suspending processes as well
186 setopt LONG_LIST_JOBS
187 # Report the status of background jobs immediately, rather than waiting until just before printing a prompt.
189 # 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.
191 # 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.
192 setopt COMPLETE_IN_WORD
193 # use zsh field splitting
194 setopt NO_SH_WORD_SPLIT
195 # unset parameters should cause an error
196 # CONFLICTS WITH ZINIT
197 # CONFLICTS WITH ZGENOM
201 # load before completion system initialization
202 # zinit load 'https://github.com/zsh-users/zsh-completions'
203 zgenom load 'https://github.com/zsh-users/zsh-completions'
205 # initialize completion system before loading plugins and external configs
209 # TODO reconsider this
210 # source /usr/share/autojump/autojump.sh
213 # autoload all functions defined by me
214 # since only filenames are required we
216 # * work only on plainfiles
217 # * take only the filename part without dir
218 autoload ~/.zsh_functions/[^_]*(-.:t)
221 autoload -Uz vcs_info
226 # spawn editor on current command line
227 autoload -Uz edit-command-line
228 zle -N edit-command-line
229 bindkey -M vicmd '^X^E' edit-command-line
230 bindkey -M viins '^X^E' edit-command-line
233 #this mainly sets vars, binds keys, does zle stuff
234 # zinit load 'https://github.com/laurenkt/zsh-vimto'
235 zgenom load 'https://github.com/laurenkt/zsh-vimto'
237 # functions and an autoload, should be fine here
238 # zinit load 'https://github.com/MichaelAquilina/zsh-you-should-use'
239 zgenom load 'https://github.com/MichaelAquilina/zsh-you-should-use'
242 # source ~/.zsh_taskwarrior
243 # source ~/.zsh_functions
244 # source ~/.zsh_functions_media
245 # source ~/.zsh_functions_taskwarrior
260 #zle -N zle-line-init
261 #zle -N zle-keymap-select
264 # keybindings might have been changed by plugins, etc.
265 # so they go more to the bottom
268 # should probably be closer to the bottom than the top?
269 # zinit load 'https://github.com/nojhan/liquidprompt'
270 zgenom load 'https://github.com/nojhan/liquidprompt'
273 # needs to be loaded close to the end because it hooks into other stuff
274 # see https://github.com/zsh-users/zsh-syntax-highlighting
275 source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
278 # commands to run after initialization is complete