Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/SMAPI.Installer/assets/unix-launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ if [ "$(uname)" == "Darwin" ]; then
chmod +x /tmp/open-smapi-terminal.command
cat /tmp/open-smapi-terminal.command

# open in ITerm2 if installed, else the default Terminal
if [ -d "/Applications/iTerm.app" ]; then
# open in Ghostty or iTerm2 if installed, else the default Terminal
if [ -d "/Applications/Ghostty.app" ]; then
echo "Reopening in Ghostty..."
open -a "/Applications/Ghostty.app" /tmp/open-smapi-terminal.command
elif [ -d "/Applications/iTerm.app" ]; then
echo "Reopening in iTerm2..."
open -a "/Applications/iTerm.app" /tmp/open-smapi-terminal.command
else
Expand Down