Remove needless split between blocks
This commit is contained in:
parent
d504968041
commit
91b66052f1
1 changed files with 27 additions and 29 deletions
10
neofetch
10
neofetch
|
@ -1739,17 +1739,16 @@ getfont () {
|
|||
# Terminal Emulator {{{
|
||||
|
||||
getterm () {
|
||||
# Workaround for OS X systems that
|
||||
# don't support the block below.
|
||||
# Check $PPID for terminal emulator.
|
||||
case "$os" in
|
||||
"Darwin")
|
||||
case "$TERM_PROGRAM" in
|
||||
"iTerm.app") term="iTerm2" ;;
|
||||
"Terminal.app") term="Apple Terminal" ;;
|
||||
*) term="${TERM_PROGRAM/\.app}" ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
# Check $PPID for terminal emulator.
|
||||
if [ -z "$term" ]; then
|
||||
case "$os" in
|
||||
"Windows")
|
||||
parent="$(ps -p ${1:-$PPID} | awk '{printf $2}')"
|
||||
parent=${parent/'PPID'}
|
||||
|
@ -1769,7 +1768,6 @@ getterm () {
|
|||
"${SHELL/*\/}" | *"sh" | "tmux" | "screen" | "systemd") getterm "$parent" ;;
|
||||
*) term="$name" ;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
# }}}
|
||||
|
|
Loading…
Reference in a new issue