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