feat: add tmux config
This commit is contained in:
parent
6d1c5b1ab5
commit
f1f5b03ddf
44
root/tmux.conf
Normal file
44
root/tmux.conf
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
# Use C-a as prefix because reaching for C-b is inefficient
|
||||||
|
set -g prefix C-a
|
||||||
|
unbind C-b
|
||||||
|
|
||||||
|
# Start windows and panes at 1, not 0
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
|
# Sane split commands
|
||||||
|
# bind | split-window -h
|
||||||
|
# bind - split-window -v
|
||||||
|
|
||||||
|
# Keep the defaults but make them work in current path
|
||||||
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
|
bind '%' split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# Vi keys, because anything else is heresy
|
||||||
|
setw -g mode-keys vi
|
||||||
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||||
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
||||||
|
|
||||||
|
# Vim-style pane navigation
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
# Fast pane switching
|
||||||
|
bind -n M-h select-pane -L
|
||||||
|
bind -n M-j select-pane -D
|
||||||
|
bind -n M-k select-pane -U
|
||||||
|
bind -n M-l select-pane -R
|
||||||
|
|
||||||
|
# Enable mouse mode
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
# Don't rename windows automatically
|
||||||
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
# Increase history limit because memory is cheap
|
||||||
|
set-option -g history-limit 50000
|
||||||
|
|
||||||
|
# Status bar that doesn't look like it's from 1970
|
||||||
|
set -g status-style 'bg=#333333 fg=#5eacd3'
|
Loading…
Reference in New Issue
Block a user