From 17b5704f4ad364c4f4ca206413925e3e62cb844e Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 14 Nov 2016 10:05:59 +0000 Subject: [PATCH] Pipe output of ls -lah to less -r --- bash/.bash_aliases | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' -- 2.46.2