]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - zsh/rc
zsh/rc: Don't complete unwanted files with Vim.
[config/dotfiles.git] / zsh / rc
diff --git a/zsh/rc b/zsh/rc
index 7f518caa0e266d533406a03bcf7c86696612bd6b..6367ff4c8f218bd1a37748cc7e415e35f8853047 100644 (file)
--- 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 <ft@bewatermyfriend.org>
 # (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