Add wezterm terminal support for linux

This commit is contained in:
nea 2023-06-22 01:41:16 +02:00 committed by Jesse Plamondon-Willard
parent 251d83472c
commit ebdb17bf81
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 6 additions and 1 deletions

View File

@ -93,7 +93,7 @@ else
# run in terminal # run in terminal
if [ "$USE_CURRENT_SHELL" == "false" ]; then if [ "$USE_CURRENT_SHELL" == "false" ]; then
# select terminal (prefer xterm for best compatibility, then known supported terminals) # select terminal (prefer xterm for best compatibility, then known supported terminals)
for terminal in xterm gnome-terminal kitty terminator xfce4-terminal konsole terminal termite alacritty mate-terminal x-terminal-emulator; do for terminal in xterm gnome-terminal kitty terminator xfce4-terminal konsole terminal termite alacritty mate-terminal x-terminal-emulator wezterm; do
if command -v "$terminal" 2>/dev/null; then if command -v "$terminal" 2>/dev/null; then
export TERMINAL_NAME=$terminal export TERMINAL_NAME=$terminal
break; break;
@ -132,6 +132,11 @@ else
exec "$TERMINAL_NAME" -- env TERM=xterm $LAUNCH_FILE "$@" exec "$TERMINAL_NAME" -- env TERM=xterm $LAUNCH_FILE "$@"
;; ;;
wezterm)
# consumes all arguments after start --. does not copy working directory automatically, needs --cwd for that.
exec "$TERMINAL_NAME" start --cwd "$(pwd)" -- env TERM=xterm $LAUNCH_FILE "$@"
;;
kitty) kitty)
# consumes all trailing arguments # consumes all trailing arguments
exec "$TERMINAL_NAME" env TERM=xterm $LAUNCH_FILE "$@" exec "$TERMINAL_NAME" env TERM=xterm $LAUNCH_FILE "$@"