change dirstackhandling to to default to off.
[zsh.git] / .zsh / zshenv.local.sample
1 # -*- mode: sh;-*-
2
3 ## This file contains settings local to the system. Note that this is
4 ## read very early, so you can not depend on anything that is set
5 ## somewhere in this zsh config. If you want that, use the file
6 ## ${ZDOTDIR}/zshlate or $ZDOTDIR/zlogin.
7 ## zlogin is read whenever the shell is a login shell, zshlate is
8 ## used on all interactive shells.
9
10 ## The contents here consist of a mix of variables and zstyle lines.
11 ## Feel free to add your own at the bottom.
12
13 ## Output some more information during zshell startup
14 DEBUG=${DEBUG:-no}
15
16 ## The following entries are added to the PATH variable, in front of
17 ## anything else. Non-existing directories are ignored, so you can
18 ## list more than the current machine has.
19 ## If you don't want any additions, make it an empty array
20 typeset -a lpath
21 lpath=(
22 "$HOME/bin"
23 /sbin
24 /usr/sbin
25 /srv/qa.debian.org/mia
26 )
27
28 ## Same goes for man and info path
29 typeset -a lmanpath
30 lmanpath=(
31 ~/man
32 ~/local/share/man
33 )
34
35 ########################################################################
36 ## The following styles are defined. ##
37 ## Values shown are the defaults taken if the style is unset ##
38 ########################################################################
39
40 ## Set a sane umask
41 # zstyle ':ganneff:config' umask '022'
42
43 ## check every 5 min for login/logout activity
44 # zstyle ':ganneff:config' LOGCHECK 300
45
46 ## The format of login/logout reports
47 # zstyle ':ganneff:config' WATCHFMT '%n %a %l from %m at %t.'
48
49 ## Do you want to have zsh compile your startup files?
50 ## It may make it faster. It may make it slower. Check yourself.
51 ## This uses zrecompile, so changed files are automagically detected
52 # zstyle ':ganneff:config' zrecompile false
53
54 ## The two variables COLORS and LINEDRAW, by default, are set according
55 ## to the capabilities of your terminal. COLORS if it supports colors
56 ## (tput colors > 0), ## LINEDRAW, who would have thought, if it can
57 ## draw "nice-looking" lines (tput acsc exists and NOT linux console).
58 ## If you want to overwrite that detection, enable the following styles.
59 # zstyle ':ganneff:config' COLORS false
60 # zstyle ':ganneff:config' LINEDRAW true/false
61
62 ## Store the dirstack between sessions and restore it
63 ## There are two ways: The first, dirpersist, will restore it in
64 ## a way that puts your new shell into the directory you quit your
65 ## last. The other way, dirstack, will restore the stack, but not
66 ## change the directory your shell starts in (so usually it will be ~).
67 ## If unset your dirstack won't be touched
68 ## Value is dirpersist or dirstack - or keep it commented for nothing.
69 # zstyle ':ganneff:config' dirstackhandling dirstack
70
71 ## Maximum number of events stored in the history file
72 ## HISTSIZE is set to 1.10 times the size of this, to have the
73 ## difference as a cushion for saving duplicated history events, so dupe
74 ## expiration can happen without killing (old) unique entries
75 # zstyle ':ganneff:config' SAVEHIST 50000
76
77 ## The preferred pager
78 # zstyle ':ganneff:config' PAGER "$(which less)"
79
80 ## some options for less
81 # zstyle ':ganneff:config' LESS '-X -R -f -j 3'
82
83 ## use solarized colorscheme for ls?
84 # zstyle ':ganneff:config' solarizedls true
85
86 ## on very wide displays it is annoying to have too wide manpages.
87 ## set to 0 if you want them really wide
88 # zstyle ':ganneff:config' MANWIDTH 80
89
90 ## The format of process time reports with the time builtin.
91 # zstyle ':ganneff:config' TIMEFMT "%J %U user %S system %P cpu %*E total | Mem: %M kb max"
92
93 ## Report time statistics if command runs longer than 30 seconds
94 ## (combined user/system execution times)
95 # zstyle ':ganneff:config' REPORTTIME 30
96
97 ## Preferred list of locales to set. The first found is taken, you
98 ## should end with C in case there is no locale configured.
99 #zstyle ':ganneff:config' locales "LANG de_DE.utf8 en_GB.utf8 C.UTF-8 C" \
100 # "LC_MESSAGES en_GB.utf8 de_DE.utf8 C.UTF-8 C"
101
102 ## Use zsh syntax hilighting (input line coloring)
103 # zstyle ':ganneff:config' zsh-syntax-hilight true
104
105 ## Preferred list of editors to use as $EDITOR.
106 ## If you want arguments to the command, give them inside ""
107 # zstyle ':ganneff:config' editors "emacs-snapshot -Q -D -nw" \
108 # "emacs24 -Q -D -nw" \
109 # "emacs23 -Q -D -nw" \
110 # "emacs22 -Q -D -nw" \
111 # mcedit \
112 # vim vi \
113 # editor
114
115 ## Want to (try) using emacsclient?
116 # zstyle ':ganneff:config' emacsclient true
117
118 ## Want to have a fortune at zsh start?
119 # zstyle ':ganneff:config' fortune true
120
121 ## Want to see how long it (roughly) took to load?
122 # zstyle ':ganneff:config' starttime false
123
124 ## Should we use lessfile or lesspipe (if installed)?
125 ## Difference is in the handling, see the manpages for details, but
126 ## one of them uses pipes and one files to hand their output to less.
127 ## Which results in one of them having you waiting until they are finished,
128 ## while the other shows you results fast - but then doesn't let less show
129 ## you how far (in %) you are in the output.
130 ## Defaults to lesspipe
131 # zstyle ':ganneff:config' lesstool lesspipe
132
133 # We have a little function "path". Call that and it displays your path
134 # variable nicely colored. Call it with argument (say, fpath) and it does
135 # it for that path. Define the colors and elements to style in this array
136 # (or live with defaults).
137 # Actually it can be used for any array, just set the pcolor style with the
138 # right matches and the color for it...
139 # zstyle ':ganneff:config' pcolor /usr green \
140 # /bin blue \
141 # /opt cyan \
142 # /sbin magenta \
143 # /local yellow \
144 # /zsh white
145
146 ## Want to see status of screen/tmux? Will list their sessions, if
147 ## any (and if they are installed)
148 # zstyle ':ganneff:config' termstatus true
149
150 ## Easy way to setup ssh agent. Usually ssh-agent (or gpg-agent) should
151 ## be setup outside zsh, like at X login time, and just serve your
152 ## terminals with their zshs inside.
153 ## But there are situations one does not have that environment around
154 ## (say, login to a remote machine) and still want an agent.
155 ##
156 ## Should we setup the agent automagically on every zsh startup?
157 ## If false then we only setup the agent/kill_agent functions to be
158 ## there.
159 ## If true we also execute the agent function and may load the keys.
160 # zstyle ':ganneff:config' doagent false
161
162 ## Which ssh keys to add to the agent? Empty if not given, then you can
163 ## manually do the ssh-add runs. Otherwise a list with path entries.
164 # zstyle ':ganneff:config' agentfiles
165
166 ## Should we kill the agent at zsh exit?
167 # zstyle ':ganneff:config' killagent true
168
169 ## Use ssh-agent or gpg-agent?
170 # zstyle ':ganneff:config' agent gpg-agent
171
172 ## zsh can do mime magic, so you can just enter a filename and
173 ## based on the mime magic, zsh will open it in the right application.
174 ## But it takes a bit to load, so if you want it, enable it.
175 ## (On my system its 1/3 of the entire zsh startup time with over 800 extra
176 ## function calls).
177 # zstyle ':ganneff:config' mimesetup false
178
179 ## List of plugins to load.
180 ## List their full path, relative to ${ZDOTDIR}/plugins here.
181 ## It doesn't matter where you get the plugins from, as long as they are
182 ## zsh files that can be sourced. As they can do everything, be careful
183 ## what you load.
184 # zstyle ':ganneff:config' plugins git-extras.plugin.zsh \
185 # history-substring-search.zsh \
186 # per-directory-history.plugin.zsh
187
188 ## oh-my-zsh plugins can also be loaded, in case you like one of it.
189 ## Simply list their names here, and put their directories into
190 ## ${ZDOTDIR}/plugins/ohmy
191 #zstyle ':ganneff:config' ohmyplugins extract
192
193 ## Allow plugins to bind keys? I really dislike if plugins overwrite my
194 ## keybindings, so I always do them myself. If you prefer to let them do
195 ## it, set it to true. If set to false, you most probably want a
196 ## ${ZDOTDIR}/80_KeyBindings.zsh.local (or one of the variable
197 ## subdirectories, Keybindings.zsh) to set the keybindings.
198 # zstyle ':ganneff:config' pluginbindkeys false
199
200 ########################################################################
201 ### Prompt setup ###
202 ## use vcs_info in prompt
203 # zstyle ':prompt:ganneff' vcs_info true
204
205 ## use defaults set by me?
206 # zstyle ':prompt:ganneff' set_vcs_info_defaults true
207
208 ## if set_vcs_info_defaults is false, you may want to enable some of the
209 ## following lines or whichever combination you like of it. See the
210 ## vcs_info documentation for what they mean.
211 # zstyle ':vcs_info:*' max-exports 1
212 # zstyle ':vcs_info:*' use-prompt-escapes
213 # zstyle ':vcs_info:*' use_simple
214 # zstyle ':vcs_info:*' stagedstr "!"
215 # zstyle ':vcs_info:*' unstagedstr "?"
216 # zstyle ':vcs_info:*' check-for-changes true
217
218 ## change vcs_info formats for the prompt
219 # zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "${PR_YELLOW}%b%{${PR_RED}%}:${PR_YELLOW}%r${PR_NO_COLOR}"
220 # zstyle ':vcs_info:*' formats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}]%m%u%c "
221 # zstyle ':vcs_info:*' actionformats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}-${PR_RED}(%a)${PR_NO_COLOR}]%m%u%c "
222 # zstyle ':vcs_info:*' disable cdv darcs mtn tla hg fossil p4
223
224 ## Similar to the zbell function included, this lets the prompt do it.
225 ## That way one can not forget to activate it. But as one might not want
226 ## it each and every time when a command runs a little longer, the
227 ## timeout here should be really high. I recommend something like 300 or
228 ## 600. Set it to 0 to turn this feature off entirely, default is 600
229 # zstyle ':prompt:ganneff' longbell 600
230
231 ## The following list of commands is ignored, no bell is output if it
232 ## runs too long. $EDITOR, $PAGER, man and maybe ssh might be good
233 ## candidates and as such are the default. If you put variables here,
234 ## we will additionally expand them at prompt setup time and so keep
235 ## both, the variable itself as well as the expanded command ignored.
236 # zstyle ':prompt:ganneff' bell_ignore '$EDITOR' '$PAGER' sleep man ssh zsh watch less
237
238 ## Use color in prompt.
239 ## COLORS is defined as true/false in 01_Terminfo.zsh depending on
240 ## capabilities of the terminal. If unset then defined by those.
241 # zstyle ':prompt:ganneff' colors true/false
242
243 ## If drawing lines, make them "nice looking".
244 ## LINEDRAW is defined as true/false in 01_Terminfo.zsh depending on
245 ## capabilities of the terminal. If unset then defined by those.
246 #zstyle ':prompt:ganneff' nicelines true/false
247
248 ## Populate prompt info item "battery"
249 ## If `none' then no battery function at all.
250 ## If either `ibam' or `acpi' then use those tools to gather
251 ## the current battery level.
252 # zstyle ':prompt:ganneff' battery none
253
254 ## If true (default), use a right side prompt
255 #zstyle ':prompt:ganneff:right:setup' use-rprompt true
256
257 ## Define list of items for the prompt. See prompt -h ganneff
258 ## for more information.
259 # zstyle ':prompt:ganneff:left:full:setup' items \
260 # ulcorner line openparentheses user at host colon pts closeparentheses line history \
261 # line shell-level line flexline openparentheses path closeparentheses line urcorner newline \
262 # llcorner line rc openparentheses time closeparentheses line vcs line change-root pipe space
263 # zstyle ':prompt:ganneff:right:full:setup' items \
264 # pipe line openparentheses date closeparentheses line lrcorner
265 # zstyle ':prompt:ganneff:left:small:setup' items \
266 # ulcorner line openparentheses user at host closeparentheses line openparentheses path closeparentheses newline \
267 # llcorner line rc openparentheses time closeparentheses line vcs line pipe space
268
269 ## Override the token of an item, here set the date one to also show day of year and week of year
270 zstyle ':prompt:ganneff:*:items:date' token '%D{%Y-%m-%d [d:%j/w:%V]}'
271
272 # Example of an extra defined item.
273 # zstyle ':prompt:ganneff:extra:ganneff' pre '${PR_RED}'
274 # zstyle ':prompt:ganneff:extra:ganneff' post '${PR_NO_COLOR}'
275 # zstyle ':prompt:ganneff:extra:ganneff' token '$BLABLA'
276 # zstyle ':prompt:ganneff:extra:ganneff' precmd jj_blabla
277
278
279 ########################################################################
280 # Styles "imported" from "external" widgets #
281 ########################################################################
282
283 ## accept-line widget
284 ## A newly added command will may not be found or will cause false
285 ## correction attempts, if you got auto-correction set. By setting the
286 ## following style, we force accept-line() to rehash, if it cannot
287 ## find the first word on the command line in the $command[] hash.
288 # zstyle ':acceptline:*' rehash true
289
290 ## If the command line is empty, we can either ignore enter, or clear
291 ## the screen. Pick your poison, default is ignore
292 ## Ignore enter?
293 zstyle ':acceptline:empty' call_default false
294
295 ## Clear the screen?
296 #zstyle ':acceptline:empty' default_action clear-screen
297
298 # Warning issued when command not found, but a completion exists.
299 zstyle ":acceptline:*" compwarnfmt \
300 'The command %c will not execute, but a completion %f exists.
301 Auto correction is set to ON, zsh will try to run the completion.
302 This may lead to unexpected results.
303
304 Hit enter again, to try execution anyway.'