.bashrc: less -R works anywhere we have GNU coreutils' less

If you have a Mac and you're not using coreutils... then ifdef this.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-10-29 16:40:03 +03:00
parent 9dd5a52bd1
commit 16889f31ab

View File

@ -13,11 +13,11 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
. $(brew --prefix)/etc/bash_completion
fi
else
alias less='less -R' # preserves colors in `less`
fi
# Aliases
alias ls='ls -F --color=auto'
alias less='less -R' # preserves colors in GNU coreutils' `less`
# Environment
PS1='[\u@\h: \w]\$ '