]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blob - .zshrc
add gitignore file
[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 # colors for newt/whiptail (for debconf, needrestart, etc.)
28 # works better with selenized colorscheme
29 export NEWT_COLORS='checkbox=yellow,;roottext=yellow,'
30
31 # where zsh looks for functions
32 fpath=(~/.zsh_functions $fpath)
33
34
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/
46
47
48 # aliases are usually independent and standalone
49 source ~/.zsh_aliases
50 # TODO break this up or make functions or get rid?
51 source ~/.zsh_qemu
52
53
54 # options are usually independent and standalone
55 # so they can stay at the top
56 setopt AUTO_CD
57 setopt CHASE_LINKS
58
59 setopt AUTO_NAME_DIRS
60
61 setopt BRACE_CCL
62 #setopt EXTENDED_GLOB
63 setopt MARK_DIRS
64 setopt NUMERIC_GLOB_SORT
65 setopt RC_EXPAND_PARAM
66 #setopt WARN_CREATE_GLOBAL
67 setopt GLOB_DOTS
68
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
76 setopt HIST_VERIFY
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
81
82 setopt NO_CLOBBER
83 setopt CORRECT
84 setopt CORRECT_ALL
85 #unsetopt NOMATCH
86 setopt PRINT_EXIT_VALUE
87
88 setopt AUTO_CONTINUE
89 setopt NO_BG_NICE
90 #setopt LONG_LIST_JOBS
91
92
93 # initialize completion system before loading plugins and external configs
94 source ~/.zsh_comprc
95
96
97 # TODO break this up
98 source ~/.zsh_zinit
99
100
101 # TODO reconsider this
102 # source /usr/share/autojump/autojump.sh
103
104
105 # autoload all functions defined by me
106 # since only filenames are required we
107 # * follow symlinks
108 # * work only on plainfiles
109 # * take only the filename part without dir
110 autoload ~/.zsh_functions/[^_]*(-.:t)
111
112
113 autoload -Uz vcs_info
114 autoload -Uz zcalc
115 autoload -Uz zargs
116
117
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
123
124
125 # source ~/.zsh_taskwarrior
126 # source ~/.zsh_functions
127 # source ~/.zsh_functions_media
128 # source ~/.zsh_functions_taskwarrior
129
130
131 # TODO break this up
132 source ~/.zsh_local
133
134 # TODO break this up
135 source ~/.env_*
136
137
138 typeset -U path
139
140 #zle -N zle-line-init
141 #zle -N zle-keymap-select
142
143
144 # keybindings might have been changed by plugins, etc.
145 # so they go more to the bottom
146
147
148 # commands to run after initialization is complete
149 #task awaiting
150 cat ~/.motd
151 # zprof