mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Remove path from terminal name
This commit is contained in:
4
neofetch
4
neofetch
@@ -1580,10 +1580,10 @@ getterm() {
|
||||
|
||||
case "${name// }" in
|
||||
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen") getterm "$parent" ;;
|
||||
"login" | "init") term="$(tty)"; term="${term/*\/}" ;;
|
||||
"login" | "init") term="$(tty)" ;;
|
||||
"ruby" | "1" | "systemd" | "sshd"* | "python"*) unset term ;;
|
||||
"gnome-terminal-") term="gnome-terminal" ;;
|
||||
*) term="$name" ;;
|
||||
*) term="${name##*/}" ;;
|
||||
esac
|
||||
|
||||
[ "$version" -ge 4 ] && term="${term^}"
|
||||
|
||||
Reference in New Issue
Block a user