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 uptime
echo "" echo ""
if [[ $UNAME != Darwin ]]; then if [[ $UNAME != Darwin ]]; then
who -H -w -u who -H -w -u|head -n10
echo "" echo ""
last -10 -w -x last -10 -w -x
fi fi
if [[ $UNAME = Darwin ]]; then if [[ $UNAME = Darwin ]]; then
who -H -u who -H -u|head -n10
echo "" echo ""
last -10 last -10
fi fi

4
zshrc
View File

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