Skip to content

Commit

Permalink
Update betterfetch.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sctech-tr committed Sep 3, 2024
1 parent 133b309 commit be403ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion betterfetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ fi
# the meat and potatoes, actual fetch

# only set these if they are not already set by the config file
[ -z "$os" ] && . /etc/os-release 2>/dev/null || export os="Unknown"
if [ -z "$os" ]; then
. /etc/os-release 2>/dev/null
os=$PRETTY_NAME # Use PRETTY_NAME or NAME
fi
[ -z "$host" ] && host=$(cat /proc/sys/kernel/hostname)
[ -z "$kernel" ] && kernel=$(sed "s/version // ; s/ (.*//" /proc/version)
[ -z "$uptime" ] && uptime=$(uptime -p 2>/dev/null | sed "s/up //")
Expand Down

0 comments on commit be403ae

Please sign in to comment.