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 # what is that for exactly? maybe taskwarrior? or timewarrior?
16 ## define word characters (for stuff like backward-word, forward-word, backward-kill-word,..)
17 ## these are NOT separators but chars considered part of a word
18 #WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>' # the default
23 # I want sbin executables available
24 export PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin
25 export PATH=${PATH}:~/bin
27 # colors for newt/whiptail (for debconf, needrestart, etc.)
28 # works better with selenized colorscheme
29 export NEWT_COLORS='checkbox=yellow,;roottext=yellow,'
31 # where zsh looks for functions
32 fpath=(~/.zsh_functions $fpath)
35 # hashed directories are usually independent and standalone
36 # so they can stay at the top
37 hash -d diary=~/Data/henksfiles/workinprogress/Dokumente/diary
38 hash -d lifedocs=~/Data/henksfiles/workinprogress/Dokumente/Leben
39 hash -d bewerbung=~/Data/henksfiles/workinprogress/Dokumente/bewerbung
40 hash -d rezepte=~/Data/henksfiles/workinprogress/Dokumente/rezepte/cuisine
41 hash -d templates=~/Data/henksfiles/workinprogress/templates
42 hash -d gitignore=~/Data/public/software/gitignore
43 hash -d doc=/usr/share/doc
44 hash -d TODO=~/Data/henksfiles/TODO/
45 hash -d fortunes=~/Data/henksfiles/workinprogress/Dokumente/fortunes/
48 # aliases are usually independent and standalone
50 # TODO break this up or make functions or get rid?
54 # options are usually independent and standalone
55 # so they can stay at the top
64 setopt NUMERIC_GLOB_SORT
65 setopt RC_EXPAND_PARAM
66 #setopt WARN_CREATE_GLOBAL
69 # remove previous entries from history
70 setopt HIST_IGNORE_ALL_DUPS
71 # do not write lines starting with a space to history file
72 setopt HIST_IGNORE_SPACE
73 # Remove superfluous blanks
74 setopt HIST_REDUCE_BLANKS
75 # expand history expansion for verification
77 # save timestamp and runtime as well
78 setopt EXTENDED_HISTORY
79 # write line to history file when finished, not when started, to have correct runtime
80 setopt INC_APPEND_HISTORY_TIME
86 setopt PRINT_EXIT_VALUE
90 #setopt LONG_LIST_JOBS
93 # initialize completion system before loading plugins and external configs
101 # TODO reconsider this
102 # source /usr/share/autojump/autojump.sh
105 # autoload all functions defined by me
106 # since only filenames are required we
108 # * work only on plainfiles
109 # * take only the filename part without dir
110 autoload ~/.zsh_functions/[^_]*(-.:t)
113 autoload -Uz vcs_info
118 # spawn editor on current command line
119 autoload -Uz edit-command-line
120 zle -N edit-command-line
121 bindkey -M vicmd '^X^E' edit-command-line
122 bindkey -M viins '^X^E' edit-command-line
125 # source ~/.zsh_taskwarrior
126 # source ~/.zsh_functions
127 # source ~/.zsh_functions_media
128 # source ~/.zsh_functions_taskwarrior
140 #zle -N zle-line-init
141 #zle -N zle-keymap-select
144 # keybindings might have been changed by plugins, etc.
145 # so they go more to the bottom
148 # commands to run after initialization is complete