summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.tmux.conf3
1 files changed, 3 insertions, 0 deletions
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}'