tmux config
This commit is contained in:
parent
790e2a871a
commit
fbe838a2a9
@ -2,7 +2,6 @@
|
||||
|
||||
set -g prefix C-b
|
||||
|
||||
|
||||
# Zoom pane
|
||||
bind -n M-f resize-pane -Z
|
||||
|
||||
@ -12,7 +11,6 @@ bind -n M-l select-pane -R
|
||||
bind -n M-j select-pane -D
|
||||
bind -n M-k select-pane -U
|
||||
|
||||
|
||||
# Windows navigation
|
||||
bind -n C-M-h previous-window
|
||||
bind -n C-M-l next-window
|
||||
@ -38,22 +36,24 @@ bind \\ split-window -v -c "#{pane_current_path}"
|
||||
|
||||
# Copy mode
|
||||
setw -g mode-keys vi
|
||||
bind-key C-v copy-mod
|
||||
bind-key v copy-mode
|
||||
bind p paste-buffer
|
||||
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi c send-keys -X clear-selection
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
||||
bind-key -T copy-mode-vi V send-keys -X rectangle-toggle
|
||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||
|
||||
bind-key -T copy-mode-vi Escape send-keys -X cancel
|
||||
bind-key -T copy-mode-vi C-c send-keys -X cancel
|
||||
bind-key -T copy-mode-vi q send-keys -X cancel
|
||||
|
||||
# Lock screen
|
||||
bind-key -T prefix C-x confirm-before -p "lock tmux? (y/n)" lock-session
|
||||
|
||||
bind-key -T prefix l confirm-before -p "lock tmux? (y/n)" lock-session
|
||||
|
||||
# Reload config
|
||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..."
|
||||
|
||||
|
||||
# Session managment
|
||||
bind 1 source-file ~/.tmux/01.conf
|
||||
bind 2 source-file ~/.tmux/02.conf
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
# vim: ft=tmux
|
||||
|
||||
set -s exit-empty off # Server will not exit if no active sessions
|
||||
set -s exit-unattached off # Server will not exit if no attached clients
|
||||
|
||||
|
||||
set -g mouse on # Enable mouse support
|
||||
|
||||
set -s escape-time 0 # Delay after escape
|
||||
@ -15,7 +13,6 @@ set -g renumber-windows on # Make windows auto renumber
|
||||
|
||||
set -g history-limit 10000 # Scroll back history
|
||||
|
||||
|
||||
setw -g aggressive-resize on # Resize windows on diff clients
|
||||
set -g display-panes-time 4000 # Increase show pane time
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ set -g set-titles-string '#S:#I.#P #W'
|
||||
|
||||
|
||||
# clock style
|
||||
setw -g clock-mode-colour green
|
||||
setw -g clock-mode-colour white
|
||||
setw -g clock-mode-style 24
|
||||
|
||||
set -g bell-action none
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user