3 setopt auto_cd extended_glob auto_pushd pushd_ignore_dups
4 setopt hist_ignore_all_dups append_history extended_history hist_reduce_blanks
5 setopt correct complete_in_word
6 setopt prompt_subst transient_rprompt
16 export EDITOR
="emacsclient -a '' -nw"
19 export LESS_TERMCAP_mb
=$
'\e[01;31m'
20 export LESS_TERMCAP_md
=$
'\e[01;31m'
21 export LESS_TERMCAP_me
=$
'\e[0m'
22 export LESS_TERMCAP_se
=$
'\e[0m'
23 export LESS_TERMCAP_so
=$
'\e[01;44;33m'
24 export LESS_TERMCAP_ue
=$
'\e[0m'
25 export LESS_TERMCAP_us
=$
'\e[01;32m'
35 zmodload
-i zsh
/complist
38 if (( CURRENT
== 1 )); then
41 # We didn't really complete anything.
45 zstyle
:compinstall filename
'/home/christoph/.zshrc'
46 zstyle
':completion:*' menu
select=3
47 zstyle
-e ':completion::*:*:*:hosts' hosts
'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2|_uni|_debian)(N) /dev/null)"}%%[# ]*}//,/ })'
48 zstyle
':completion:*:default' list-colors
${(s.:.)LS_COLORS}
49 zstyle
':completion:::::' completer _force_rehash _complete _approximate _expand _ignored
50 zstyle
-e ':completion:*:approximate:*' max-errors
'reply=( $(( ($#PREFIX + $#SUFFIX) / 3 )) )'
51 zstyle
':completion:*:(^approximate):*' matcher-list
'm:{a-z}={A-Z}'
54 bindkey
'\ee' backward-word
55 bindkey
'\ef' forward-word
56 bindkey
'\e[B' down-line-or-search
57 bindkey
'\e[A' up-line-or-search
58 bindkey
'\e[28~' run-help
63 echo -e '\033]0;'$1'\007'
68 setWindowTitle
${USER}@
${HOST}
70 if [[ $UID == 0 && $
+commands
[systemctl
] != 0 ]]
73 systemd_failed
="`systemctl --state=failed | grep failed | cut -d \ -f 2 | tr '\n' ' '`"
77 config
=("default" "`uname -s`")
79 case "${DOMAIN//cs.fau.de/informatik.uni-erlangen.de}" in
81 export EMAIL
=christoph@debian.org
82 config
=($config debian
)
84 (faui49
*.uni-erlangen.de
)
85 export EMAIL
=Christoph.Egger@cs.fau.de
86 config
=($config i4lab
)
88 (faui0
*.informatik.uni-erlangen.de|faui48
*.informatik.uni-erlangen.de
)
89 export EMAIL
=siccegge@cs.fau.de
93 export MAIL
=christoph@christoph-egger.org
98 if [[ $UID == 0 && $
+commands
[systemctl
] != 0 ]]
100 PROMPT
=$
'%{$fg[red]>> $systemd_failed$reset_color%}\n'
105 PROMPT
+=$
'%{$fg[yellow]%}%n@%{$fg[magenta]%}%m%{$reset_color%} %~ \n%{$fg[cyan]%}%T%{$reset_color%} %0(?,%{$fg[green]%},%{$fg[red]%}%s)%?%{$reset_color%} %# '
107 RPROMPT
='${vcs_info_msg_0_}'
109 export DEBEMAIL
='christoph@debian.org'
110 export DEBFULLNAME
='Christoph Egger'
111 export DEB_BUILD_OPTIONS
="parallel=$(getconf _NPROCESSORS_ONLN)"
114 for ftype
in aliases includes
116 for location
in $config
118 if [ -f ~
/.zsh
/${ftype}/${location}.zsh
]
120 source ~
/.zsh
/${ftype}/${location}.zsh
128 gpg
--fingerprint $1 >> ${HOME}/karma
129 printf '\n-----\n\n' >> ${HOME}/karma
133 gpg
--refresh-keys 2>&1 |
grep -v 'nicht geƤndert'
137 pkgname
=`echo $i | rcut -d '/' -f 1 | cut -d '_' -f 1`
138 apt-get
--download-only -t unstable
$pkgname
142 path
=(${HOME}/bin
$path)
143 fpath
=(${HOME}/.zsh
/functions
/$CONFIG ${HOME}/.zsh
/functions
/default
$fpath)
148 alias wb
="ssh -t buildd.debian.org wb"