X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/f98cb7bf41283653ccd5d575eb13d2695d0da97c..c2fc1c7c9dc991f9e71b1074a5556572f7e0a368:/.zsh/zshrc/00_TODO diff --git a/.zsh/zshrc/00_TODO b/.zsh/zshrc/00_TODO index aa65548..32e197d 100644 --- a/.zsh/zshrc/00_TODO +++ b/.zsh/zshrc/00_TODO @@ -23,22 +23,27 @@ setopt autopushd pushdminus pushdsilent pushdtohome # brace expansion setopt braceccl -# automatically remove duplicates from these arrays -typeset -gU path cdpath fpath manpath +[ "$(umask)" = 022 ] && umask 0077 -# http://xanana.ucsc.edu/~wgscott/wordpress_new/wordpress/?p=12 -typeset -ga preexec_functions -typeset -ga precmd_functions -typeset -ga chpwd_functions +eval `lesspipe 2>/dev/null` -. $ZDOTDIR/xterm-title +WORDCHARS="*?_-.[]~/&;!#$%^(){}<>" -precmd_functions+=set_plain_xterm_title -preexec_functions+=set_cmd_xterm_title +# report time stats when command takes longer than 5 seconds +REPORTTIME=5 -[ "$(umask)" = 022 ] && umask 0077 +MAILCHECK=0 -eval `lesspipe 2>/dev/null` +# http://grml.org/zsh/zsh-lovers.html +rationalise-dot() { + if [[ $LBUFFER = *.. ]]; then + LBUFFER+=/.. + else + LBUFFER+=. + fi +} +zle -N rationalise-dot +bindkey . rationalise-dot :