updated reduced-tmux.conf
This commit is contained in:
@@ -5,29 +5,6 @@ set-option -g default-command "/bin/bash"
|
||||
# enable rgb colors
|
||||
set-option -sa terminal-features ',xterm-256color'
|
||||
|
||||
# set prefix key
|
||||
unbind C-b
|
||||
set-option -g prefix C-Space
|
||||
|
||||
# general keybindings
|
||||
bind -n M-S-Left previous-window
|
||||
bind -n M-S-Right next-window
|
||||
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Down select-pane -D
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Right select-pane -R
|
||||
|
||||
# enable mouse support
|
||||
set -g mouse on
|
||||
# bind -n WheelUpPane {
|
||||
# if -F '#{==:#{window_name},nvim}' {
|
||||
# send-keys -M
|
||||
# } {
|
||||
# copy-mode -e
|
||||
# }
|
||||
# }
|
||||
|
||||
# reasonable resizing
|
||||
setw -g aggressive-resize on
|
||||
|
||||
@@ -39,3 +16,54 @@ set-option -g renumber-windows on
|
||||
|
||||
# status bar
|
||||
set -g status-interval 5
|
||||
|
||||
# buffer size
|
||||
set-option -g history-limit 3000
|
||||
|
||||
|
||||
### input options & keybindings
|
||||
set-window-option -g mode-keys vi
|
||||
bind-key -n M-c copy-mode
|
||||
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||
|
||||
# change prefix key to <space>
|
||||
unbind C-b
|
||||
set-option -g prefix C-Space
|
||||
|
||||
# window navigation
|
||||
bind-key -n M-Left previous-window
|
||||
bind-key -n M-Right next-window
|
||||
bind-key -n M-S-Left swap-window -t -1 -d
|
||||
bind-key -n M-S-Right swap-window -t +1 -d
|
||||
|
||||
# pane navigation
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Down select-pane -D
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Right select-pane -R
|
||||
|
||||
bind -n M-j swap-pane -D
|
||||
bind -n M-k swap-pane -U
|
||||
|
||||
bind-key -n M-F1 select-layout even-horizontal
|
||||
bind-key -n M-F2 select-layout main-vertical
|
||||
bind-key -n M-F3 select-layout tiled
|
||||
|
||||
unbind x
|
||||
bind-key x kill-pane -t +0
|
||||
|
||||
# detach current session and close terminal
|
||||
bind-key k run "tmux detach -P"
|
||||
|
||||
# enable mouse support
|
||||
set -g mouse on
|
||||
# bind -n WheelUpPane {
|
||||
# if -F '#{==:#{window_name},nvim}' {
|
||||
# send-keys -M
|
||||
# } {
|
||||
# copy-mode -e
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user