From 370b11c911f81ba8cccb183413cf3b1eebf1614a Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 4 Sep 2025 08:53:16 +0530 Subject: feat(home/tmux): show cwd in window format --- home/common/modules/neovim/config/lua/pacman/plugins/toggleterm.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'home/common/modules/neovim/config') diff --git a/home/common/modules/neovim/config/lua/pacman/plugins/toggleterm.lua b/home/common/modules/neovim/config/lua/pacman/plugins/toggleterm.lua index e47af46..e61b9b6 100644 --- a/home/common/modules/neovim/config/lua/pacman/plugins/toggleterm.lua +++ b/home/common/modules/neovim/config/lua/pacman/plugins/toggleterm.lua @@ -9,6 +9,8 @@ return { local session_name = "_nvim_toggleterm_" .. vim.fn.getcwd() .. "_$(date +%s%4N)" term:send("exec tmux new-session -A -s " .. session_name) term:send("tmux set-option destroy-unattached") + term:send("tmux set window-status-current-format '#{window_index}:#{pane_current_command}'") + term:send("tmux set window-status-format '#{window_index}:#{pane_current_command}'") term:clear() end, }, -- cgit v1.2.3