Merge pull request #908 from romangraef/feat/wezterm
Add wezterm terminal support for linux
This commit is contained in:
commit
f52b2a5ad4
|
@ -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 "$@"
|
||||||
|
|
Loading…
Reference in New Issue