]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blob - .zshrc
lot faster
[user/henk/vcsh/zsh.git] / .zshrc
1 # zprof only makes sense at the very top
2 # zmodload zsh/zprof
3
4
5 # exports are usually independent and standalone
6 # so they can stay at the top
7
8 # where to write history
9 export HISTFILE=~/.zsh_history
10 export HISTSIZE=1000000000
11 export SAVEHIST=1000000000
12
13 export ANSIBLE_NOCOWS=1
14 export ANSIBLE_STRATEGY=mitogen_linear
15
16 # what is that for exactly? maybe taskwarrior? or timewarrior?
17 REPORTTIME=10
18
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
22
23 # zsh you-should-use
24 export YSU_MODE=ALL
25
26 # I want sbin executables available
27 export PATH=${PATH}:/usr/local/sbin:/sbin:/usr/sbin
28 export PATH=${PATH}:~/bin
29
30 # colors for newt/whiptail (for debconf, needrestart, etc.)
31 # works better with selenized colorscheme
32 export NEWT_COLORS='checkbox=yellow,;roottext=yellow,'
33
34 # where zsh looks for functions
35 fpath=(~/.zsh_functions $fpath)
36
37
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/henksfiles/workinprogress/Dokumente/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/
49
50
51 # aliases are usually independent and standalone
52 source ~/.zsh_aliases
53 # TODO break this up or make functions or get rid?
54 source ~/.zsh_qemu
55
56
57 # options are usually independent and standalone
58 # so they can stay at the top
59 setopt AUTO_CD
60 setopt CHASE_LINKS
61
62 setopt AUTO_NAME_DIRS
63
64 setopt BRACE_CCL
65 #setopt EXTENDED_GLOB
66 setopt MARK_DIRS
67 setopt NUMERIC_GLOB_SORT
68 setopt RC_EXPAND_PARAM
69 #setopt WARN_CREATE_GLOBAL
70 setopt GLOB_DOTS
71
72 # remove previous entries from history
73 setopt HIST_IGNORE_ALL_DUPS
74 # do not write lines starting with a space to history file
75 setopt HIST_IGNORE_SPACE
76 # Remove superfluous blanks
77 setopt HIST_REDUCE_BLANKS
78 # expand history expansion for verification
79 setopt HIST_VERIFY
80 # save timestamp and runtime as well
81 setopt EXTENDED_HISTORY
82 # write line to history file when finished, not when started, to have correct runtime
83 setopt INC_APPEND_HISTORY_TIME
84
85 setopt NO_CLOBBER
86 setopt CORRECT
87 setopt CORRECT_ALL
88 #unsetopt NOMATCH
89 setopt PRINT_EXIT_VALUE
90
91 setopt AUTO_CONTINUE
92 setopt NO_BG_NICE
93 #setopt LONG_LIST_JOBS
94
95
96 # initialize completion system before loading plugins and external configs
97 source ~/.zsh_comprc
98
99
100 # TODO break this up
101 source ~/.zsh_zinit
102
103
104 # TODO reconsider this
105 # source /usr/share/autojump/autojump.sh
106
107
108 # autoload all functions defined by me
109 # since only filenames are required we
110 # * follow symlinks
111 # * work only on plainfiles
112 # * take only the filename part without dir
113 autoload ~/.zsh_functions/[^_]*(-.:t)
114
115
116 autoload -Uz vcs_info
117 autoload -Uz zcalc
118 autoload -Uz zargs
119
120
121 # spawn editor on current command line
122 autoload -Uz edit-command-line
123 zle -N edit-command-line
124 bindkey -M vicmd '^X^E' edit-command-line
125 bindkey -M viins '^X^E' edit-command-line
126
127
128 # source ~/.zsh_taskwarrior
129 # source ~/.zsh_functions
130 # source ~/.zsh_functions_media
131 # source ~/.zsh_functions_taskwarrior
132
133
134 # TODO break this up
135 source ~/.zsh_local
136
137 # TODO break this up
138 source ~/.env_*
139
140
141 typeset -U path
142
143 #zle -N zle-line-init
144 #zle -N zle-keymap-select
145
146
147 # keybindings might have been changed by plugins, etc.
148 # so they go more to the bottom
149
150
151 # commands to run after initialization is complete
152 #task awaiting
153 cat ~/.motd
154 # zprof