bashrc & zshrc: limit who to 10 lines too.

This commit is contained in:
Mikaela Suomalainen 2014-05-03 12:29:26 +03:00
parent 1eac4252ef
commit 5b3bb32ee1
2 changed files with 4 additions and 4 deletions

4
bashrc
View File

@ -149,13 +149,13 @@ hostname
uptime
echo ""
if [[ $UNAME != Darwin ]]; then
who -H -w -u
who -H -w -u|head -n10
echo ""
last -10 -w -x
fi
if [[ $UNAME = Darwin ]]; then
who -H -u
who -H -u|head -n10
echo ""
last -10
fi

4
zshrc
View File

@ -85,13 +85,13 @@ uptime
echo ""
if [[ $UNAME != Darwin ]] then;
who -H -w -u
who -H -w -u|head -n10
echo ""
last -10 -w -x
fi
if [[ $UNAME = Darwin ]]; then
who -H -u
who -H -u|head -n10
echo ""
last -10
fi