]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: Add wrappers for tree and xpdf.
authorSimon Ruderich <simon@ruderich.org>
Sun, 31 Oct 2010 17:49:42 +0000 (18:49 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 31 Oct 2010 17:49:42 +0000 (18:49 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index 7f518caa0e266d533406a03bcf7c86696612bd6b..f9b13b0d615e82fb7d7f03fdcd9fe9c24af3c7f6 100644 (file)
--- a/zsh/rc
+++ b/zsh/rc
@@ -580,6 +580,17 @@ tig() {
         $@
 }
 
+# Pipe output through less.
+tree() {
+    command tree -C "$@" | less
+}
+
+# Automatically disown.
+xpdf() {
+    command xpdf "$@" &
+    disown %command
+}
+
 
 # OS SPECIFIC SETTINGS