[PR] #272 from Un1q32: Add "Apple Terminal"

Add `Apple_Terminal` to list of special cases in get_term()
This commit is contained in:
Azalea 2024-05-16 01:51:00 +08:00 committed by GitHub
commit a2abe13b86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4548,7 +4548,7 @@ get_term() {
# don't support the block below.
case $TERM_PROGRAM in
"iTerm.app") term="iTerm2" ;;
"Terminal.app") term="Apple Terminal" ;;
"Terminal.app"|"Apple_Terminal") term="Apple Terminal" ;;
"Hyper") term="HyperTerm" ;;
*) term="${TERM_PROGRAM/\.app}" ;;
esac