mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Add support for OS X terminals
This commit is contained in:
8
neofetch
8
neofetch
@@ -1738,7 +1738,13 @@ getfont () {
|
|||||||
# Terminal Emulator {{{
|
# Terminal Emulator {{{
|
||||||
|
|
||||||
getterm () {
|
getterm () {
|
||||||
[ -n "$ITERM_PROFILE" ] && term="iTerm2"
|
# Workaround for OS X systems that
|
||||||
|
# don't support the block below.
|
||||||
|
case "$TERM_PROGRAM" in
|
||||||
|
"iTerm.app") term="iTerm2" ;;
|
||||||
|
"Terminal.app") term="Apple Terminal" ;;
|
||||||
|
*) term="${TERM_PROGRAM/\.app}" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Check $PPID for terminal emulator.
|
# Check $PPID for terminal emulator.
|
||||||
if [ -z "$term" ]; then
|
if [ -z "$term" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user