]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Pipe output of ls -lah to less -r
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 14 Nov 2016 10:05:59 +0000 (10:05 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 14 Nov 2016 10:05:59 +0000 (10:05 +0000)
bash/.bash_aliases

index 36e02d4dfdcb6bc659acc78c08415933a9fbfe5f..879f20c0842763407e4f728a9b1888ad1dac4b62 100644 (file)
@@ -9,5 +9,7 @@ if [ -x /usr/bin/dircolors ]; then
     alias egrep='egrep --color=auto'
 fi
 
-alias la='ls -lah'
+function la {
+        \ls -lah --color=always "$@" | less -r
+}
 alias tmux='TERM=xterm-256color tmux'