Enable tracing of the initialization
[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 ## The two variables COLORS and LINEDRAW, by default, are set according
50 ## to the capabilities of your terminal. COLORS if it supports colors
51 ## (tput colors > 0), ## LINEDRAW, who would have thought, if it can
52 ## draw "nice-looking" lines (tput acsc exists and NOT linux console).
53 ## If you want to overwrite that detection, enable the following styles.
54 # zstyle ':ganneff:config' COLORS false
55 # zstyle ':ganneff:config' LINEDRAW true/false
56
57 ## Store the dirstack between sessions and restore it
58 ## There are two ways: The first, dirpersist, will restore it in
59 ## a way that puts your new shell into the directory you quit your
60 ## last. The other way, dirstack, will restore the stack, but not
61 ## change the directory your shell starts in (so usually it will be ~).
62 ## Value is dirpersist or dirstack
63 zstyle ':ganneff:config' dirstackhandling dirpersist
64
65 ## Maximum number of events stored in the history file
66 ## HISTSIZE is set to 1.10 times the size of this, to have the
67 ## difference as a cushion for saving duplicated history events, so dupe
68 ## expiration can happen without killing (old) unique entries
69 # zstyle ':ganneff:config' SAVEHIST 50000
70
71 ## The preferred pager
72 # zstyle ':ganneff:config' PAGER "$(which less)"
73
74 ## some options for less
75 # zstyle ':ganneff:config' LESS '-X -R -f -j 3'
76
77 ## use solarized colorscheme for ls?
78 # zstyle ':ganneff:config' solarizedls true
79
80 ## on very wide displays it is annoying to have too wide manpages.
81 ## set to 0 if you want them really wide
82 # zstyle ':ganneff:config' MANWIDTH 0
83
84 ## The format of process time reports with the time builtin.
85 # zstyle ':ganneff:config' TIMEFMT "%J %U user %S system %P cpu %*E total | Mem: %M kb max"
86
87 ## Preferred list of locales to set. The first found is taken, you
88 ## should end with C in case there is no locale configured.
89 #zstyle ':ganneff:config' locales "LANG de_DE.utf8 en_GB.utf8 C.UTF-8 C" \
90 # "LC_MESSAGES en_GB.utf8 de_DE.utf8 C.UTF-8 C"
91
92 ## Use zsh syntax hilighting (input line coloring)
93 # zstyle ':ganneff:config' zsh-syntax-hilight true
94
95 ## Preferred list of editors to use as $EDITOR.
96 ## If you want arguments to the command, give them inside ""
97 # zstyle ':ganneff:config' editors "emacs-snapshot -Q -D -nw" \
98 # "emacs24 -Q -D -nw" \
99 # "emacs23 -Q -D -nw" \
100 # "emacs22 -Q -D -nw" \
101 # mcedit \
102 # vim vi \
103 # editor
104
105 ## Want to (try) using emacsclient?
106 # zstyle ':ganneff:config' emacsclient true
107
108 ## Want to have a fortune at zsh start?
109 # zstyle ':ganneff:config' fortune true
110
111 ########################################################################
112 ### Prompt setup ###
113 ## use vcs_info in prompt
114 zstyle ':prompt:ganneff' vcs_info true
115
116 ## use defaults set by me?
117 zstyle ':prompt:ganneff' set_vcs_info_defaults true
118
119 ## if set_vcs_info_defaults is false, you may want to enable some of the
120 ## following lines or whichever combination you like of it. See the
121 ## vcs_info documentation for what they mean.
122 # zstyle ':vcs_info:*' max-exports 1
123 # zstyle ':vcs_info:*' use-prompt-escapes
124 # zstyle ':vcs_info:*' use_simple
125 # zstyle ':vcs_info:*' stagedstr "!"
126 # zstyle ':vcs_info:*' unstagedstr "?"
127 # zstyle ':vcs_info:*' check-for-changes true
128
129 ## change vcs_info formats for the prompt
130 # zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "${PR_YELLOW}%b%{${PR_RED}%}:${PR_YELLOW}%r${PR_NO_COLOR}"
131 # zstyle ':vcs_info:*' formats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}]%m%u%c "
132 # 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 "
133 # zstyle ':vcs_info:*' disable cdv darcs mtn tla hg fossil p4
134
135 ## Use color in prompt.
136 ## COLORS is defined as true/false in 01_Terminfo.zsh depending on
137 ## capabilities of the terminal. If unset then defined by those.
138 # zstyle ':prompt:ganneff' colors true/false
139
140 ## If drawing lines, make them "nice looking".
141 ## LINEDRAW is defined as true/false in 01_Terminfo.zsh depending on
142 ## capabilities of the terminal. If unset then defined by those.
143 #zstyle ':prompt:ganneff' nicelines true/false
144
145 ## Populate prompt info item "battery"
146 ## If `none' then no battery function at all.
147 ## If either `ibam' or `acpi' then use those tools to gather
148 ## the current battery level.
149 zstyle ':prompt:ganneff' battery none
150
151 ## If true (default), use a right side prompt
152 #zstyle ':prompt:ganneff:right:setup' use-rprompt true
153
154 ## Define list of items for the prompt. See prompt -h ganneff
155 ## for more information.
156 # zstyle ':prompt:ganneff:left:full:setup' items \
157 # ulcorner line openparentheses user at host colon pts closeparentheses line history \
158 # line shell-level line flexline openparentheses path closeparentheses line urcorner newline \
159 # llcorner line rc openparentheses time closeparentheses line vcs line change-root pipe space
160 # zstyle ':prompt:ganneff:right:full:setup' items \
161 # pipe line openparentheses date closeparentheses line lrcorner
162 # zstyle ':prompt:ganneff:left:small:setup' items \
163 # ulcorner line openparentheses user at host closeparentheses line openparentheses path closeparentheses newline \
164 # llcorner line rc openparentheses time closeparentheses line vcs line pipe space
165
166 ## Override the token of an item
167 zstyle ':prompt:ganneff:*:items:date' token '%D{%Y-%m-%d [d:%j/w:%V]}'
168
169 # Example of an extra defined item.
170 # zstyle ':prompt:ganneff:extra:ganneff' pre '${PR_RED}'
171 # zstyle ':prompt:ganneff:extra:ganneff' post '${PR_NO_COLOR}'
172 # zstyle ':prompt:ganneff:extra:ganneff' token '$BLABLA'
173 # zstyle ':prompt:ganneff:extra:ganneff' precmd jj_blabla