Update neofetch
This commit is contained in:
parent
315ae5209a
commit
a60cf636f6
1 changed files with 1 additions and 2 deletions
3
neofetch
3
neofetch
|
@ -1514,7 +1514,6 @@ get_term() {
|
||||||
"Hyper") term="HyperTerm" ;;
|
"Hyper") term="HyperTerm" ;;
|
||||||
*) term="${TERM_PROGRAM/\.app}" ;;
|
*) term="${TERM_PROGRAM/\.app}" ;;
|
||||||
esac
|
esac
|
||||||
[[ "$TERM_PROGRAM" ]] && return
|
|
||||||
|
|
||||||
# Check $PPID for terminal emulator.
|
# Check $PPID for terminal emulator.
|
||||||
while [[ -z "$term" ]]; do
|
while [[ -z "$term" ]]; do
|
||||||
|
@ -1524,7 +1523,7 @@ get_term() {
|
||||||
case "${name// }" in
|
case "${name// }" in
|
||||||
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su") ;;
|
"${SHELL/*\/}" | *"sh" | "tmux"* | "screen" | "su") ;;
|
||||||
"login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;;
|
"login"* | *"Login"* | "init" | "(init)") term="$(tty)" ;;
|
||||||
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) unset term; break ;;
|
"ruby" | "1" | "systemd" | "sshd"* | "python"* | "USER"*"PID"*) break ;;
|
||||||
"gnome-terminal-") term="gnome-terminal" ;;
|
"gnome-terminal-") term="gnome-terminal" ;;
|
||||||
*) term="${name##*/}" ;;
|
*) term="${name##*/}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue