Update '.tmux.conf'
This commit is contained in:
32
.tmux.conf
32
.tmux.conf
@@ -1,11 +1,17 @@
|
||||
# tmux theme
|
||||
source-file "${HOME}/.tmuxtheme"
|
||||
|
||||
# split panes using | and -
|
||||
unbind '"'
|
||||
unbind %
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
bind | split-window -h -c "#{pane_current_path}" # -c openes it in the current directory
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# History limit increase
|
||||
set -g history-limit 50000
|
||||
|
||||
# reload config
|
||||
bind r source-file ~/.tmux.conf
|
||||
bind C-r source-file ~/.tmux.conf \; display "Config reloaded!"
|
||||
|
||||
# switch panes using Alt-arrow without prefix
|
||||
bind -n M-Left select-pane -L
|
||||
@@ -13,5 +19,25 @@ bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
|
||||
# vim style switch pane
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
bind -r H resize-pane -L 5
|
||||
bind -r J resize-pane -D 5
|
||||
bind -r K resize-pane -U 5
|
||||
bind -r L resize-pane -R 5
|
||||
|
||||
# Enable mouse control (clickable windows, panes, resizable panes)
|
||||
set -g mouse on
|
||||
|
||||
# Fix numbering for easy switching
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
set -g renumber-windows on
|
||||
|
||||
# Timeout for display messages (in milliseconds)
|
||||
set -g display-time 1000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user