diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-09-04 08:53:16 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-09-04 22:26:39 +0530 |
commit | 370b11c911f81ba8cccb183413cf3b1eebf1614a (patch) | |
tree | 5c0d39c845f92802da114bb2bb168448f0e68f90 | |
parent | e6653aaea6002c39722ffaf04c5f3106abc67cca (diff) |
feat(home/tmux): show cwd in window format
-rw-r--r-- | home/common/modules/neovim/config/lua/pacman/plugins/toggleterm.lua | 2 | ||||
-rw-r--r-- | home/common/modules/tmux.nix | 2 |
2 files changed, 4 insertions, 0 deletions
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, }, diff --git a/home/common/modules/tmux.nix b/home/common/modules/tmux.nix index d9a6c7e..db7b5d5 100644 --- a/home/common/modules/tmux.nix +++ b/home/common/modules/tmux.nix @@ -43,6 +43,8 @@ set -g status-left "" set -g status-right "" set -g status-justify right + set -g window-status-current-format '#{window_index}:#(basename #{pane_current_path})(#{pane_current_command})*' + set -g window-status-format '#{window_index}:#(basename #{pane_current_path})(#{pane_current_command})' # nvim.checkhealth: without this |'autoread'| may not work set-option -g focus-events on |