From 1a398da8e6408551b89cb8f176347e2f8afc882a Mon Sep 17 00:00:00 2001 From: Randy Jordan Date: Sun, 3 Nov 2024 14:27:32 -0600 Subject: [PATCH] tmux config --- .tmux.conf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..a1d49bd --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,35 @@ +set-option status-style fg=white,bg=black +set-window-option -g window-status-style bg=green +set -g history-limit 10000 +set -g allow-rename off + +# Remap default "prefix" from Ctrl-b to Ctrl-a +set -g prefix C-a +bind C-a send-prefix +unbind C-b + +# Reaload conf with r +unbind r +bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" + +# Enable mouse control (clickable windows,panes, resizable panes) +set -g mouse on + +# Use vim keybindings in copy mode +setw -g mode-keys vi + +# Pane Splitting +unbind v +unbind h + +unbind % # Split vertically +unbind '"' # Split horizontally + +bind v split-window -h -c "#{pane_current_path}" +bind h split-window -v -c "#{pane_current_path}" + +# Pane navigation Alt-Arrow +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D