Fix bugs
This commit is contained in:
parent
7a661b3966
commit
7862e3af5a
1 changed files with 3 additions and 1 deletions
4
neofetch
4
neofetch
|
@ -465,6 +465,8 @@ getpackages() {
|
|||
packages="$(pkg list | wc -l)"
|
||||
;;
|
||||
esac
|
||||
|
||||
[ "$packages" == "0" ] && unset packages
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
@ -1597,7 +1599,7 @@ getterm() {
|
|||
case "${name// }" in
|
||||
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen") getterm "$parent" ;;
|
||||
"login" | "init") term="$(tty)" ;;
|
||||
"ruby" | "1" | "systemd" | "sshd"* | "python"*) unset term ;;
|
||||
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER PID"*) unset term ;;
|
||||
"gnome-terminal-") term="gnome-terminal" ;;
|
||||
*) term="${name##*/}" ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue