#!/usr/bin/env bash # gnome-terminal doesn't appear to work outside of Gnome anymore, and mate-terminal is apparently unavailable on some # systems, so we take our best guess as to which one to use. if which wezterm > /dev/null 2>&1 && which wezterm-wrapper > /dev/null 2>&1 then # The only terminal emulator I was able to find for macOS that used $SHELL nicely was wezterm. # Darwin didn't like changing its LC_ALL. # Also nice on Linux. export PATH=/Applications/WezTerm.app/Contents/MacOS/:"$PATH" wezterm-wrapper elif xdpyinfo | grep -q '^ *VNC-EXTENSION\>' then # This does not appear to work in TightVNC. export LC_ALL=en_US.utf8 export LANG=en_US.utf8 mate-terminal elif type -path mate-terminal > /dev/null 2>&1 then export LC_ALL=en_US.utf8 export LANG=en_US.utf8 mate-terminal elif type -path gnome-terminal > /dev/null 2>&1 then # gnome-terminal --disable-factory export LC_ALL=en_US.utf8 export LANG=en_US.utf8 gnome-terminal else xterm fi