.zshrc: less is the same on Mac OS X and Linux

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-05-09 18:21:45 +03:00
parent 0df8db6540
commit 45f14fee92
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

4
.zshrc
View File

@ -39,7 +39,6 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
alias chown='gchown' alias chown='gchown'
alias ln='gln' alias ln='gln'
alias find='gfind' alias find='gfind'
alias less='gless -R' # preserves colors
alias sed='gsed' alias sed='gsed'
# solarized dircolors (needs coreutils from pkgsrc) # solarized dircolors (needs coreutils from pkgsrc)
@ -48,12 +47,13 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
elif [[ "$OSTYPE" =~ ^linux*$ ]]; then elif [[ "$OSTYPE" =~ ^linux*$ ]]; then
# aliases # aliases
alias ls='ls -F --color=auto' alias ls='ls -F --color=auto'
alias less='less -R' # preserves colors in GNU coreutils' `less`
# solarized dircolors # solarized dircolors
[[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark` [[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark`
fi fi
alias less='less -R' # preserves colors in GNU coreutils' `less`
# Environment # Environment
export PS1='[%n@%m: %~]$ ' export PS1='[%n@%m: %~]$ '
export EDITOR=vim export EDITOR=vim