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
37 zstyle
:compinstall filename
'/home/christoph/.zshrc'
38 zstyle
':completion:*' menu
select=3
39 zstyle
-e ':completion::*:*:*:hosts' hosts
'reply=(${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2|_uni|_debian)(N) /dev/null)"}%%[# ]*}//,/ })'
40 zstyle
':completion:*:default' list-colors
${(s.:.)LS_COLORS}
43 bindkey
'\ee' backward-word
44 bindkey
'\ef' forward-word
45 bindkey
'\e[B' down-line-or-search
46 bindkey
'\e[A' up-line-or-search
47 bindkey
'\e[28~' run-help
52 echo -e '\033]0;'$1'\007'
57 setWindowTitle
${USER}@
${HOST}
59 if [[ $UID == 0 && -f `which systemctl` ]]
62 systemd_failed
="`systemctl --state=failed | grep failed | cut -d \ -f 2 | tr '\n' ' '`"
66 config
=("default" "`uname -s`")
68 case "${DOMAIN//cs.fau.de/informatik.uni-erlangen.de}" in
70 export EMAIL
=christoph@debian.org
71 config
=($config debian
)
73 (faui49
*.uni-erlangen.de
)
74 export EMAIL
=Christoph.Egger@cs.fau.de
75 config
=($config i4lab
)
77 (faui0
*.informatik.uni-erlangen.de|faui48
*.informatik.uni-erlangen.de
)
78 export EMAIL
=siccegge@cs.fau.de
82 export MAIL
=christoph@christoph-egger.org
87 if [[ $UID == 0 && -f `which systemctl` ]]
89 PROMPT
=$
'%{$fg[red]>> $systemd_failed$reset_color%}\n'
94 PROMPT
+=$
'%{$fg[yellow]%}%n@%{$fg[magenta]%}%m%{$reset_color%} %~ \n%{$fg[cyan]%}%T%{$reset_color%} %0(?,%{$fg[green]%},%{$fg[red]%}%s)%?%{$reset_color%} %# '
96 RPROMPT
='${vcs_info_msg_0_}'
98 export DEBEMAIL
='christoph@debian.org'
99 export DEBFULLNAME
='Christoph Egger'
100 export DEB_BUILD_OPTIONS
="parallel=$(getconf _NPROCESSORS_ONLN)"
103 for ftype
in aliases includes
105 for location
in $config
107 if [ -f ~
/.zsh
/${ftype}/${location}.zsh
]
109 source ~
/.zsh
/${ftype}/${location}.zsh
117 gpg
--fingerprint $1 >> ${HOME}/karma
118 printf '\n-----\n\n' >> ${HOME}/karma
122 gpg
--refresh-keys 2>&1 |
grep -v 'nicht geƤndert'
126 pkgname
=`echo $i | rcut -d '/' -f 1 | cut -d '_' -f 1`
127 apt-get
--download-only -t unstable
$pkgname
131 path
=(${HOME}/bin
$path)
132 fpath
=(${HOME}/.zsh
/functions
/$CONFIG ${HOME}/.zsh
/functions
/default
$fpath)
137 alias wb
="ssh -t buildd.debian.org wb"