Use explicit tmux commands
This commit is contained in:
parent
7571cd19e7
commit
db07a97efc
1 changed files with 18 additions and 18 deletions
|
@ -1,32 +1,32 @@
|
|||
set -g default-terminal "screen-256color"
|
||||
set-option -g default-terminal "screen-256color"
|
||||
set-option -sa terminal-overrides ',xterm-256color:RGB'
|
||||
|
||||
set -g status-style 'bg=#333333 fg=#5eacd3'
|
||||
set-option -g status-style 'bg=#333333 fg=#5eacd3'
|
||||
|
||||
unbind-key C-b
|
||||
set -g prefix C-a
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
|
||||
set -sg escape-time 1
|
||||
set-option -sg escape-time 1
|
||||
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
set-window-option -g monitor-activity on
|
||||
set-option -g visual-activity on
|
||||
|
||||
set -g mode-keys vi
|
||||
set -g history-limit 10000
|
||||
set-option -g mode-keys vi
|
||||
set-option -g history-limit 10000
|
||||
|
||||
# y and p as in vim
|
||||
bind-key Escape copy-mode
|
||||
unbind-key p
|
||||
bind-key p paste-buffer
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||
bind-key -T copy-mode-vi 'Space' send -X halfpage-down
|
||||
bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
|
||||
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
|
||||
bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down
|
||||
bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up
|
||||
|
||||
# extra commands for interacting with the ICCCM clipboard
|
||||
bind-key C-c run "tmux save-buffer - | xclip -i -sel clipboard"
|
||||
bind-key C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
|
||||
bind-key C-c run-shell "tmux save-buffer - | xclip -i -sel clipboard"
|
||||
bind-key C-v run-shell "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"
|
||||
|
||||
# easy-to-remember split pane commands
|
||||
bind-key | split-window -h
|
||||
|
@ -55,8 +55,8 @@ unbind-key s
|
|||
bind-key s run-shell -b "tmux switch-client -t $(tmux list-sessions | awk -F: '{print $1}' | fzf-tmux -w 100 | tr -d '\n')"
|
||||
|
||||
# plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set-option -g @plugin 'tmux-plugins/tpm'
|
||||
set-option -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set-option -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
run-shell '~/.tmux/plugins/tpm/tpm'
|
||||
|
|
Loading…
Add table
Reference in a new issue