]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
shell: aliases: add -S to chop long lines in tree wrapper
authorSimon Ruderich <simon@ruderich.org>
Thu, 10 Jan 2019 09:21:57 +0000 (10:21 +0100)
committerSimon Ruderich <simon@ruderich.org>
Thu, 10 Jan 2019 09:21:57 +0000 (10:21 +0100)
Makes output more readable with (long) symlinks, for example in
git-annex repositories.

shell/shell/aliases.in

index 6d8997d15d2584280953a7c82890d7745c3c3f5c..294467d2adcf8079fb10045b81982f8878d18e88 100644 (file)
@@ -115,7 +115,7 @@ alias grep='grep --color=auto'
 
 # Pipe output through less.
 tree() {
-    command tree -C "$@" | less
+    command tree -C "$@" | less -S
 }
 
 # Better viewer for info pages .. just pipe everything into less.