Update tmux configuration
This commit is contained in:
parent
2973a0abf5
commit
2ebe2274e9
41
tmux.conf
41
tmux.conf
|
@ -38,30 +38,33 @@ bind-key M-h resize-pane -L
|
||||||
bind-key M-l resize-pane -R
|
bind-key M-l resize-pane -R
|
||||||
|
|
||||||
# Vim style pane selection
|
# Vim style pane selection
|
||||||
bind h select-pane -L
|
bind-key h select-pane -L
|
||||||
bind j select-pane -D
|
bind-key j select-pane -D
|
||||||
bind k select-pane -U
|
bind-key k select-pane -U
|
||||||
bind l select-pane -R
|
bind-key l select-pane -R
|
||||||
|
|
||||||
# Use Alt-vim keys without prefix key to switch panes
|
# Use Alt-vim keys without prefix key to switch panes
|
||||||
bind -n M-h select-pane -L
|
bind-key -n M-h select-pane -L
|
||||||
bind -n M-j select-pane -D
|
bind-key -n M-j select-pane -D
|
||||||
bind -n M-k select-pane -U
|
bind-key -n M-k select-pane -U
|
||||||
bind -n M-l select-pane -R
|
bind-key -n M-l select-pane -R
|
||||||
|
|
||||||
# Use Alt-arrow keys without prefix key to switch panes
|
# Use Alt-arrow keys without prefix key to switch panes
|
||||||
bind -n M-Left select-pane -L
|
bind-key -n M-Left select-pane -L
|
||||||
bind -n M-Right select-pane -R
|
bind-key -n M-Right select-pane -R
|
||||||
bind -n M-Up select-pane -U
|
bind-key -n M-Up select-pane -U
|
||||||
bind -n M-Down select-pane -D
|
bind-key -n M-Down select-pane -D
|
||||||
|
|
||||||
# Shift arrow to switch windows
|
# Shift arrow to switch windows
|
||||||
bind -n S-Left previous-window
|
bind-key -n S-Left previous-window
|
||||||
bind -n S-Right next-window
|
bind-key -n S-Right next-window
|
||||||
bind -n C-S-Left swap-window -t -1\; select-window -t -1
|
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
|
||||||
bind -n C-S-Right swap-window -t +1\; select-window -t +1
|
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
|
||||||
|
|
||||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
# TODO: this breaks stuff, why?
|
||||||
|
#bind-key -n C-[ copy-mode
|
||||||
|
|
||||||
bind -n C-S-K send-keys -R \; clear-history
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
||||||
bind r source-file ~/.tmux.conf \; display "Reloading config..."
|
|
||||||
|
bind-key -n C-S-K send-keys -R \; clear-history
|
||||||
|
bind-key r source-file ~/.tmux.conf \; display "Reloading config..."
|
||||||
|
|
1
zshrc
1
zshrc
|
@ -84,6 +84,7 @@ alias sk="setkeys"
|
||||||
alias sysc="systemctl"
|
alias sysc="systemctl"
|
||||||
alias tm="tmux attach"
|
alias tm="tmux attach"
|
||||||
alias tmd="tmux new -s default || tmux attach -t default"
|
alias tmd="tmux new -s default || tmux attach -t default"
|
||||||
|
alias tmls="tmux list-sessions"
|
||||||
alias tms="tmuxsess"
|
alias tms="tmuxsess"
|
||||||
alias wg="sudo wg"
|
alias wg="sudo wg"
|
||||||
alias wgdown="sudo wgdown"
|
alias wgdown="sudo wgdown"
|
||||||
|
|
Loading…
Reference in New Issue