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