From aea39b153e72b4df07506b7de42b6a4232d12c61 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 10 Feb 2025 06:30:22 +0100 Subject: Better tmux --- .tmux.conf | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index 4739600..a001984 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,3 +1,7 @@ +unbind C-b +set -g prefix ` +bind ` send-prefix + set -g default-terminal "screen-256color" set-window-option -g automatic-rename on set-window-option -g mode-keys vi @@ -5,16 +9,6 @@ set-option -g set-titles on set-option -sg escape-time 10 set-option -g mouse off -if-shell "uname | grep -q Linux" { - set -g prefix M-x - bind M-x send-prefix -} - -if-shell "uname | grep -q Darwin" { - set -g prefix M-z - bind M-z send-prefix -} - set -g base-index 1 set-window-option -g pane-base-index 1 set -g renumber-windows on @@ -28,3 +22,8 @@ bind-key Down select-pane -D bind-key Left select-pane -L bind-key Right select-pane -R +bind-key -r S-Up resize-pane -U 5 +bind-key -r S-Down resize-pane -D 5 +bind-key -r S-Left resize-pane -L 5 +bind-key -r S-Right resize-pane -R 5 + -- cgit v1.2.3