summaryrefslogtreecommitdiffstats
path: root/sysinfo
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo')
-rwxr-xr-xsysinfo18
1 files changed, 14 insertions, 4 deletions
diff --git a/sysinfo b/sysinfo
index bc087c1..8a7500a 100755
--- a/sysinfo
+++ b/sysinfo
@@ -1,6 +1,16 @@
-#!/bin/sh
+#!/bin/zsh
+BLUE="\e[1;34m"
+NC="\e[0m"
+
clear
cat /etc/motd
-inxi -CGINSx
-echo -en "${BLUE}Uptime:$NC" ; uptime
-pydf
+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
+