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