X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=2a3ff4c34622a7840a5a070e165a475f7cae77e6;hb=3710002bb73bca18ebd0b762aecdaabdbf8ef80e;hp=7f518caa0e266d533406a03bcf7c86696612bd6b;hpb=946a5c992e47a7af05701a7b43518462e193ea51;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 7f518ca..2a3ff4c 100644 --- a/zsh/rc +++ b/zsh/rc @@ -492,6 +492,11 @@ zstyle ':completion:*:(mv|cp):*' ignore-line no # simpler. Thanks to Nomexous in #zsh on Freenode (2010-03-16 01:54) zstyle ':completion:*:*:-command-:*' ignored-patterns './config.*' +# Don't complete unwanted files with Vim. Thanks to Nomexous in #zsh on +# Freenode (2010-06-06 04:54 CEST). See below to complete them. +zstyle ':completion:*:*:vim:*:all-files' ignored-patterns '*.aux' '*.log' \ + '*.pdf' '*.class' + # Provide a fallback completer which always completes files. Useful when Zsh's # completion is too "smart". Thanks to Frank Terbeck # (http://www.zsh.org/mla/users/2009/msg01038.html). @@ -580,6 +585,17 @@ tig() { $@ } +# Pipe output through less. +tree() { + command tree -C "$@" | less +} + +# Automatically disown. +xpdf() { + command xpdf "$@" & + disown %command +} + # OS SPECIFIC SETTINGS @@ -601,7 +617,7 @@ source_config ~/.zsh/rc.local # If not already in screen reattach to a running session or create a new one. # This also starts screen one a remote server when connecting through ssh. -if [[ $TERM != dumb && -z $STY ]]; then +if [[ $TERM != dumb && $TERM != linux && -z $STY ]]; then # Get running detached sessions. session=$(screen -list | grep 'Detached' | awk '{ print $1; exit }')