summaryrefslogtreecommitdiffstats
path: root/sysinfo
blob: 8a7500a826f2e4f21da0cc93895dd11c8375e0e6 (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} $(hostname)"
echo -e "${BLUE}Uptime:$NC ${${$(uptime)%%,*}##*up }, ${$(</proc/loadavg)% *}"

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