.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
1 changed files with 2 additions and 2 deletions

4
.zshrc
View File

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