mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-01 05:52:34 +07:00
Add ufetch-aux
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# ufetch-aux - tiny system info for a/ux
|
||||
|
||||
## INFO
|
||||
|
||||
# user is already defined
|
||||
host=`hostname`
|
||||
os=`uname -sr`
|
||||
kernel=`uname -v`
|
||||
uptime=`uptime | awk '{print $3" "$4}' | tr -d ,`
|
||||
shell=`basename ${SHELL}`
|
||||
|
||||
## DEFINE COLORS
|
||||
|
||||
# probably don't change these
|
||||
bold=`tput bold`
|
||||
reset=`tput sgr0`
|
||||
|
||||
# you can change these
|
||||
lc="${reset}${bold}" # labels
|
||||
nc="${reset}${bold}" # user and hostname
|
||||
ic="${reset}" # info
|
||||
c0="${reset}" # first color
|
||||
|
||||
## OUTPUT
|
||||
|
||||
echo "
|
||||
${c0} (/
|
||||
${c0} .---__--. ${nc}${USER}${ic}@${nc}${host}${reset}
|
||||
${c0} / \ ${lc}OS: ${ic}${os}${reset}
|
||||
${c0} | / ${lc}KERNEL: ${ic}${kernel}${reset}
|
||||
${c0} | \\_ ${lc}UPTIME: ${ic}${uptime}${reset}
|
||||
${c0} \ / ${lc}SHELL: ${ic}${shell}${reset}
|
||||
${c0} \`._.-._.\`
|
||||
"
|
||||
Reference in New Issue
Block a user