.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:
parent
9dd5a52bd1
commit
16889f31ab
2
.bashrc
2
.bashrc
@ -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]\$ '
|
||||
|
Loading…
Reference in New Issue
Block a user