From 117f12dbd61a1b75382917a1608d937853b92b08 Mon Sep 17 00:00:00 2001 From: Bob Qi Date: Thu, 27 Jul 2023 13:28:37 +0800 Subject: [PATCH] pass cwd for wezterm terminal --- rc/windowing/wezterm.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/windowing/wezterm.kak b/rc/windowing/wezterm.kak index ddb473be..4db0ea84 100644 --- a/rc/windowing/wezterm.kak +++ b/rc/windowing/wezterm.kak @@ -20,7 +20,7 @@ wezterm-terminal-vertical [] []: create a new te The current pane is split into two, top and bottom The program passed as argument will be executed in the new terminal' \ %{ - wezterm-terminal-impl split-pane --bottom -- %arg{@} + wezterm-terminal-impl split-pane --cwd "%val{client_env_PWD}" --bottom -- %arg{@} } complete-command wezterm-terminal-vertical shell @@ -29,7 +29,7 @@ wezterm-terminal-horizontal []: create a new terminal as a The current pane is split into two, left and right The program passed as argument will be executed in the new terminal' \ %{ - wezterm-terminal-impl split-pane --right -- %arg{@} + wezterm-terminal-impl split-pane --cwd "%val{client_env_PWD}" --right -- %arg{@} } complete-command wezterm-terminal-horizontal shell @@ -37,7 +37,7 @@ define-command wezterm-terminal-tab -params 1.. -docstring ' wezterm-terminal-tab []: create a new terminal as a wezterm tab The program passed as argument will be executed in the new terminal' \ %{ - wezterm-terminal-impl spawn -- %arg{@} + wezterm-terminal-impl spawn --cwd "%val{client_env_PWD}" -- %arg{@} } complete-command wezterm-terminal-tab shell @@ -45,7 +45,7 @@ define-command wezterm-terminal-window -params 1.. -docstring ' wezterm-terminal-window []: create a new terminal as a wezterm window The program passed as argument will be executed in the new terminal' \ %{ - wezterm-terminal-impl spawn --new-window -- %arg{@} + wezterm-terminal-impl spawn --cwd "%val{client_env_PWD}" --new-window -- %arg{@} } complete-command wezterm-terminal-window shell