summaryrefslogtreecommitdiffstats
path: root/sysinfo
blob: ea285d75ae11cbe8b71aebd9c83779e593cdb139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/zsh
BLUE="\e[1;34m"
NC="\e[0m"

clear
cat /etc/motd
echo
echo -e "${BLUE}Host:${NC} $HOST"
echo -e "${BLUE}Uptime:$NC ${${$(uptime)%%,*}##*up }, ${$(</proc/loadavg)% *}"

if [ -x /usr/bin/fortune ]; then
	echo
	/usr/bin/fortune -s
	echo
fi