7 zstyle
-s ':ganneff:config' umask _umask
11 # Want a halfway sane terminal
12 [[ -t 0 ]] && /bin
/stty erase
"^H" intr
"^C" susp
"^Z" dsusp
"^Y" stop
"^S" start
"^Q" kill "^U" >& /dev
/null
14 # watch for everybody but me
16 # check every 5 min for login/logout activity
18 WATCHFMT
='%n %a %l from %m at %t.'
20 # autoload wrapper - use this one instead of autoload directly
21 # We need to define this function as early as this, because autoloading
22 # 'is-at-least()' needs it.
23 function zrcautoload
() {
31 for fdir
in ${fpath} ; do
32 [[ -e ${fdir}/${ffile} ]] && (( ffound
= 1 ))
35 (( ffound
== 0 )) && return 1
36 if [[ $ZSH_VERSION == 3.1.
<6-> ||
$ZSH_VERSION == <4->* ]] ; then
37 autoload
-U ${ffile} ||
return 1
39 autoload
${ffile} ||
return 1
44 # Some things need to be done very early
45 # the following helper functions have been taken from the grml zshrc
46 # (wherever they got them from)
47 # check for version/system
48 # check for versions (compatibility reasons)
50 [[ $ZSH_VERSION == <4->* ]] && return 0
55 [[ $ZSH_VERSION == 4.
<1->* ||
$ZSH_VERSION == <5->* ]] && return 0
60 [[ $ZSH_VERSION == 4.
<2->* ||
$ZSH_VERSION == <5->* ]] && return 0
65 [[ $ZSH_VERSION == 4.2.
<5->* ||
$ZSH_VERSION == 4.
<3->* ||
$ZSH_VERSION == <5->* ]] && return 0
70 [[ $ZSH_VERSION == 4.
<3->* ||
$ZSH_VERSION == <5->* ]] && return 0
75 [[ $ZSH_VERSION == 4.3.
<3->* ||
$ZSH_VERSION == 4.
<4->* \
76 ||
$ZSH_VERSION == <5->* ]] && return 0
81 [[ $ZSH_VERSION == 4.3.
<4->* ||
$ZSH_VERSION == 4.
<4->* \
82 ||
$ZSH_VERSION == <5->* ]] && return 0
87 [[ $ZSH_VERSION == 4.3.
<5->* ||
$ZSH_VERSION == 4.
<4->* \
88 ||
$ZSH_VERSION == <5->* ]] && return 0
93 [[ $ZSH_VERSION == 4.3.
<7->* ||
$ZSH_VERSION == 4.
<4->* \
94 ||
$ZSH_VERSION == <5->* ]] && return 0
99 [[ $ZSH_VERSION == 4.3.
<9->* ||
$ZSH_VERSION == 4.
<4->* \
100 ||
$ZSH_VERSION == <5->* ]] && return 0
105 [[ $OSNAME == Darwin
* ]] && return 0
110 [[ $OSNAME == FreeBSD
* ]] && return 0
114 if ! [[ ${ZSH_VERSION} == 3.1.
<7->* \
115 ||
${ZSH_VERSION} == 3.
<2->.
<->* \
116 ||
${ZSH_VERSION} == <4->.
<->* ]] ; then
119 printf '-!- In this configuration we try to make use of features, that only\n'
120 printf '-!- require version 3.1.7 of the shell; That way this setup can be\n'
121 printf '-!- used with a wide range of zsh versions, while using fairly\n'
122 printf '-!- advanced features in all supported versions.\n'
124 printf '-!- However, you are running zsh version %s.\n' "$ZSH_VERSION"
126 printf '-!- While this *may* work, it might as well fail.\n'
127 printf '-!- Please consider updating to at least version 3.1.7 of zsh.\n'
129 printf '-!- DO NOT EXPECT THIS TO WORK FLAWLESSLY!\n'
130 printf '-!- If it does today, you'\''ve been lucky.\n'
132 printf '-!- Ye been warned!\n'
135 function zstyle
() { : }
138 for paths
in "$fpath[@]"; do
139 for func
in "$paths"/*(N
:t
); do