.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:
parent
0df8db6540
commit
45f14fee92
4
.zshrc
4
.zshrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user