summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2022-07-09 21:39:31 +0200
committerAhmed Abdelhalim <[email protected]>2022-07-09 21:39:31 +0200
commit3f579a079c96541b0258c8a46f439d5e50072cd7 (patch)
treeebedce54972b7fe72d0ea06cad311234bc230448
parent2bbf4b803266a93562f241378b6aaa54dce612d7 (diff)
Add keybinding for resizing tmux
-rw-r--r--.tmux.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
index bedcb8c..7e93ea6 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -17,5 +17,11 @@ bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
bind-key -n C-k clear-history
+# Resizing panes
+bind-key -r h resize-pane -L 5
+bind-key -r j resize-pane -D 5
+bind-key -r k resize-pane -U 5
+bind-key -r l resize-pane -R 5
+
# Load OSX specific configurations to add (fix copy)
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'