mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-26 05:09:23 +01:00
bashrc & zshrc: limit who to 10 lines too.
This commit is contained in:
parent
1eac4252ef
commit
5b3bb32ee1
4
bashrc
4
bashrc
@ -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
4
zshrc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user