.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 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
|
||||||
|
Loading…
Reference in New Issue
Block a user