8d816a6ca6f9d534e00412139e3684c318c8f34b
[zsh.git] / .zsh / zshenv.local.sample
1 # -*- mode: sh;-*-
2
3 ## This file contains settings local to the system.
4 ## Note that this is read very early, so you can not depend on anything
5 ## that is set in the zsh config. If you want that, use the file
6 ## ${ZDOTDIR}/zshlate or $ZDOTDIR/zlogin. zlogin is read whenever the
7 ## shell is a login shell, zshlate is used on all interactive shells.
8
9 ## Output some more information during zshell startup
10 DEBUG=${DEBUG:-no}
11
12 ########################################################################
13 ## The following styles are defined. ##
14 ## Values shown are the defaults taken if the style is unset ##
15 ########################################################################
16
17 ## Set a sane umask
18 # zstyle ':ganneff:config' umask '022'
19
20 ########################################################################
21 ### Prompt setup ###
22 ## use vcs_info in prompt
23 zstyle ':prompt:ganneff' vcs_info true
24
25 ## use defaults set by me?
26 zstyle ':prompt:ganneff' set_vcs_info_defaults true
27
28 ## if set_vcs_info_defaults is false, you may want to enable some of the
29 ## following lines or whichever combination you like of it. See the
30 ## vcs_info documentation for what they mean.
31 # zstyle ':vcs_info:*' max-exports 1
32 # zstyle ':vcs_info:*' use-prompt-escapes
33 # zstyle ':vcs_info:*' use_simple
34 # zstyle ':vcs_info:*' stagedstr "!"
35 # zstyle ':vcs_info:*' unstagedstr "?"
36 # zstyle ':vcs_info:*' check-for-changes true
37
38 ## change vcs_info formats for the prompt
39 # zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "${PR_YELLOW}%b%{${PR_RED}%}:${PR_YELLOW}%r${PR_NO_COLOR}"
40 # zstyle ':vcs_info:*' formats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}]%m%u%c "
41 # 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 "
42 # zstyle ':vcs_info:*' disable cdv darcs mtn tla hg fossil p4
43
44 ## Use color in prompt.
45 ## COLORS is defined as true/false in 01_Terminfo.zsh depending on
46 ## capabilities of the terminal. If unset then defined by those.
47 # zstyle ':prompt:ganneff' colors true/false
48
49 ## If drawing lines, make them "nice looking".
50 ## LINEDRAW is defined as true/false in 01_Terminfo.zsh depending on
51 ## capabilities of the terminal. If unset then defined by those.
52 #zstyle ':prompt:ganneff' nicelines true/false
53
54 ## Populate prompt info item "battery"
55 ## If `none' then no battery function at all.
56 ## If either `ibam' or `acpi' then use those tools to gather
57 ## the current battery level.
58 # zstyle ':prompt:ganneff' battery none
59
60 ## If true (default), use a right side prompt
61 #zstyle ':prompt:ganneff:right:setup' use-rprompt true
62
63 ## Define list of items for the prompt. See prompt -h ganneff
64 ## for more information.
65 # zstyle ':prompt:ganneff:left:full:setup' items \
66 # ulcorner line openparentheses user at host colon pts closeparentheses line history \
67 # line shell-level line flexline openparentheses path closeparentheses line urcorner newline \
68 # llcorner line rc openparentheses time closeparentheses line vcs line change-root pipe space
69 # zstyle ':prompt:ganneff:right:full:setup' items \
70 # pipe line openparentheses date closeparentheses line lrcorner
71 # zstyle ':prompt:ganneff:left:small:setup' items \
72 # ulcorner line openparentheses user at host closeparentheses line openparentheses path closeparentheses newline \
73 # llcorner line rc openparentheses time closeparentheses line vcs line pipe space
74
75 ## Override the token of an item
76 zstyle ':prompt:ganneff:*:items:date' token '%D{%Y-%m-%d [d:%j/w:%V]}'
77
78 # Example of an extra defined item.
79 # zstyle ':prompt:ganneff:extra:ganneff' pre '${PR_RED}'
80 # zstyle ':prompt:ganneff:extra:ganneff' post '${PR_NO_COLOR}'
81 # zstyle ':prompt:ganneff:extra:ganneff' token '$BLABLA'
82 # zstyle ':prompt:ganneff:extra:ganneff' precmd jj_blabla