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