diff --git a/.tmux.conf b/.tmux.conf index 8781c14..c1aafea 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -74,6 +74,11 @@ set -g @rose_pine_status_right_append_section '#(cd #{pane_current_path} && git # Window configuration set -g @rose_pine_window_status_separator " | " +# Send a command to all panes in the current window +bind S command-prompt -p "Command:" \ + "run \"tmux list-panes -F '##{session_name}:##{window_index}.##{pane_index}' \ + | xargs -I PANE tmux send-keys -t PANE '%1' Enter\"" + # Hide pane borders completely (must be after theme to override) set -g pane-border-style fg=default,bg=default set -g pane-active-border-style fg=default,bg=default