Add PAGER environment (zsh).

This commit is contained in:
Gea-Suan Lin
2014-02-23 10:57:00 +08:00
parent 7f0d802e32
commit 93d293edf6

6
.zshrc
View File

@@ -22,6 +22,12 @@ alias "smic=sudo make install clean"
alias "ssh=ssh -4 -C -e none -v" alias "ssh=ssh -4 -C -e none -v"
alias "t=telnet" alias "t=telnet"
# #
if [[ -x /usr/local/bin/most || -x /usr/bin/most ]]; then
export PAGER="most"
else
export PAGER="less"
fi
#
if [ "`uname -s`" == "FreeBSD" -o "`uname -s`" == "Darwin" ]; then if [ "`uname -s`" == "FreeBSD" -o "`uname -s`" == "Darwin" ]; then
alias "ls=/bin/ls -aFG" alias "ls=/bin/ls -aFG"
elif [ "`uname -s`" == "Linux" ]; then elif [ "`uname -s`" == "Linux" ]; then