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
27 # hashed directories are usually independent and standalone
28 # so they can stay at the top
29 hash -d diary=~/Data/henksfiles/workinprogress/Dokumente/diary
30 hash -d lifedocs=~/Data/henksfiles/workinprogress/Dokumente/Leben
31 hash -d bewerbung=~/Data/henksfiles/workinprogress/Dokumente/bewerbung
32 hash -d rezepte=~/Data/henksfiles/workinprogress/Dokumente/rezepte/cuisine
33 hash -d templates=~/Data/henksfiles/workinprogress/templates
34 hash -d gitignore=~/Data/public/software/gitignore
35 hash -d doc=/usr/share/doc
36 hash -d TODO=~/Data/henksfiles/TODO/
37 hash -d fortunes=~/Data/henksfiles/workinprogress/Dokumente/fortunes/
40 # aliases are usually independent and standalone
42 # TODO break this up or make functions or get rid?
46 # options are usually independent and standalone
47 # so they can stay at the top
56 setopt NUMERIC_GLOB_SORT
57 setopt RC_EXPAND_PARAM
58 #setopt WARN_CREATE_GLOBAL
61 # remove previous entries from history
62 setopt HIST_IGNORE_ALL_DUPS
63 # do not write lines starting with a space to history file
64 setopt HIST_IGNORE_SPACE
65 # Remove superfluous blanks
66 setopt HIST_REDUCE_BLANKS
67 # expand history expansion for verification
69 # save timestamp and runtime as well
70 setopt EXTENDED_HISTORY
71 # write line to history file when finished, not when started, to have correct runtime
72 setopt INC_APPEND_HISTORY_TIME
78 setopt PRINT_EXIT_VALUE
82 #setopt LONG_LIST_JOBS
85 # initialize completion system before loading plugins and external configs
93 # TODO reconsider this
94 # source /usr/share/autojump/autojump.sh
97 # autoload all functions defined by me
98 # since only filenames are required we
100 # * work only on plainfiles
101 # * take only the filename part without dir
102 fpath=(~/.zsh_functions $fpath)
103 autoload ~/.zsh_functions/[^_]*(-.:t)
106 autoload -Uz vcs_info
111 # spawn editor on current command line
112 autoload -Uz edit-command-line
113 zle -N edit-command-line
114 bindkey -M vicmd '^X^E' edit-command-line
115 bindkey -M viins '^X^E' edit-command-line
118 # source ~/.zsh_taskwarrior
119 # source ~/.zsh_functions
120 # source ~/.zsh_functions_media
121 # source ~/.zsh_functions_taskwarrior
131 #zle -N zle-line-init
132 #zle -N zle-keymap-select
135 # keybindings might have been changed by plugins, etc.
136 # so they go more to the bottom
139 # commands to run after initialization is complete