From b75b3a4a63eced3d5c8383e6a4842cadaf55b4ad Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 24 May 2015 15:58:41 -0400 Subject: Swap windows instead of moving them --- .tmux.conf | 3 +++ 1 file changed, 3 insertions(+) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index c202a31e..e6e63991 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -28,6 +28,9 @@ set -g status-right-bg white # Create new windows in same directory bind t new-window -c '#{pane_current_path}' +# Move windows around by swapping +bind . command-prompt "swap-window -t '%%'" + # Split windows like vim, in same directory bind s split-window -v -c '#{pane_current_path}' bind v split-window -h -c '#{pane_current_path}' -- cgit 1.4.1