Merge pull request #908 from romangraef/feat/wezterm

Add wezterm terminal support for linux
This commit is contained in:
Jesse Plamondon-Willard 2023-06-24 12:50:01 -04:00 committed by GitHub
commit f52b2a5ad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 "$@"