From: Maximilian Friedersdorff Date: Mon, 14 Nov 2016 10:05:59 +0000 (+0000) Subject: Pipe output of ls -lah to less -r X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=17b5704f4ad364c4f4ca206413925e3e62cb844e;p=max%2Fdotfiles.git Pipe output of ls -lah to less -r --- diff --git a/bash/.bash_aliases b/bash/.bash_aliases index 36e02d4..879f20c 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -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'