Revert tab changes
This commit is contained in:
parent
ea1d2d2341
commit
df945f51a9
11
neofetch
11
neofetch
|
@ -458,6 +458,7 @@ case "$os" in
|
||||||
"Linux" )
|
"Linux" )
|
||||||
if type -p lsb_release >/dev/null 2>&1; then
|
if type -p lsb_release >/dev/null 2>&1; then
|
||||||
distro="$(lsb_release -d 2>/dev/null | awk -F ':' '/Description/ {printf $2}')"
|
distro="$(lsb_release -d 2>/dev/null | awk -F ':' '/Description/ {printf $2}')"
|
||||||
|
distro=${distro/[[:space:]]}
|
||||||
|
|
||||||
elif type -p crux >/dev/null 2>&1; then
|
elif type -p crux >/dev/null 2>&1; then
|
||||||
distro="$(crux)"
|
distro="$(crux)"
|
||||||
|
@ -510,7 +511,7 @@ case "$os" in
|
||||||
x32="32-bit"
|
x32="32-bit"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
distro=${distro//+([[:space:]])/ }
|
distro=${distro//+( )/ }
|
||||||
ascii_distro="$distro"
|
ascii_distro="$distro"
|
||||||
|
|
||||||
getdistro () {
|
getdistro () {
|
||||||
|
@ -627,7 +628,7 @@ getuptime () {
|
||||||
uptime=${uptime# }
|
uptime=${uptime# }
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
uptime=${uptime//+([[:space:]])/ }
|
uptime=${uptime//+( )/ }
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
@ -920,7 +921,7 @@ getcpu () {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Trim whitespace
|
# Trim whitespace
|
||||||
cpu=${cpu//+([[:space:]])/ }
|
cpu=${cpu//+( )/ }
|
||||||
|
|
||||||
# Add CPU info bar
|
# Add CPU info bar
|
||||||
prin "${subtitle}: ${cpu}"
|
prin "${subtitle}: ${cpu}"
|
||||||
|
@ -1070,7 +1071,7 @@ getgpu () {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
gpu=${gpu//+([[:space:]])/ }
|
gpu=${gpu//+( )/ }
|
||||||
gpu="${gpu}${count}"
|
gpu="${gpu}${count}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1719,7 +1720,7 @@ getbirthday () {
|
||||||
|
|
||||||
# Pretty output
|
# Pretty output
|
||||||
[ "$birthday_shorthand" == "off" ] && \
|
[ "$birthday_shorthand" == "off" ] && \
|
||||||
birthday=${date_cmd//+([[:space:]])/ }
|
birthday=${date_cmd//+( )/ }
|
||||||
|
|
||||||
# Toggle showing the time
|
# Toggle showing the time
|
||||||
[ "$birthday_time" == "off" ] && \
|
[ "$birthday_time" == "off" ] && \
|
||||||
|
|
Reference in New Issue