From f2d87aed3585102ac978d0eee7ad8babd0cb735b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 25 May 2023 12:27:33 -0300 Subject: tmux: open new windows in current pane's path I think I used to do ^B " then ^B ! to move a new pane into a new window, which sort of makes sense if you usually want new windows to start from the home directory, but... eh... It's easier to default to the current directory and just `cd` if you need to get home right away. --- .tmux.conf | 1 + 1 file changed, 1 insertion(+) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index 703e3b3..14f7fcb 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -8,5 +8,6 @@ set-window-option -g window-status-current-style fg=colour251,bright bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" +bind c new-window -c "#{pane_current_path}" bind -n C-S-Left swap-window -t -1 bind -n C-S-Right swap-window -t +1 -- cgit 1.3.0-6-gf8a5