X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/8cb0099bf1690c4df754ad210a4c2c275aab97e6..7964cdfea7efc26a42f26a33b8626d319c91b8f4:/.zsh/zshrc/00_TODO?ds=inline diff --git a/.zsh/zshrc/00_TODO b/.zsh/zshrc/00_TODO index 902c9ea..dc1294b 100644 --- a/.zsh/zshrc/00_TODO +++ b/.zsh/zshrc/00_TODO @@ -23,18 +23,17 @@ setopt autopushd pushdminus pushdsilent pushdtohome # brace expansion setopt braceccl -# automatically remove duplicates from these arrays -typeset -gU path cdpath fpath manpath - -# http://xanana.ucsc.edu/~wgscott/wordpress_new/wordpress/?p=12 -typeset -ga preexec_functions -typeset -ga precmd_functions -typeset -ga chpwd_functions - -. $ZDOTDIR/xterm-title - -precmd_functions+=set_plain_xterm_title -preexec_functions+=set_cmd_xterm_title +# print backgrounded jobs when they finish +setopt notify +# bg-processes should not be nice +unsetopt bgnice +# send no HUP signal to running jobs when the shell exits +setopt nohup +# don't bother me with running jobs (only wize with setopt nohup) +unsetopt checkjobs + +# disable backslashed escape sequences unless -e is given to echo +setopt bsd_echo [ "$(umask)" = 022 ] && umask 0077 @@ -45,6 +44,19 @@ WORDCHARS="*?_-.[]~/&;!#$%^(){}<>" # report time stats when command takes longer than 5 seconds REPORTTIME=5 +MAILCHECK=0 + +# http://grml.org/zsh/zsh-lovers.html +rationalise-dot() { + if [[ $LBUFFER = *.. ]]; then + LBUFFER+=/.. + else + LBUFFER+=. + fi +} +zle -N rationalise-dot +bindkey . rationalise-dot + : # vim:ft=zsh