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

clear

if [[ -e /etc/motd ]]; then
	cat /etc/motd
	echo
fi

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