mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
update script
This commit is contained in:
@ -19,7 +19,7 @@ set-option -g renumber-windows on
|
||||
# set -g prefix C-a
|
||||
# set -g prefix C-q
|
||||
|
||||
# Set parent terminal title to reflect current window in tmux session
|
||||
# Set parent terminal title to reflect current window in tmux session
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#I:#W"
|
||||
|
||||
@ -43,7 +43,7 @@ unbind '"' # split-window
|
||||
unbind \} # swap-pane -D
|
||||
unbind \{ # swap-pane -U
|
||||
unbind [ # paste-buffer
|
||||
unbind ]
|
||||
unbind ]
|
||||
unbind "'" # select-window
|
||||
unbind n # next-window
|
||||
unbind p # previous-window
|
||||
@ -52,7 +52,7 @@ unbind M-n # next window with alert
|
||||
unbind M-p # next window with alert
|
||||
unbind o # focus thru panes
|
||||
unbind & # kill-window
|
||||
unbind "#" # list-buffer
|
||||
unbind "#" # list-buffer
|
||||
unbind = # choose-buffer
|
||||
unbind z # zoom-pane
|
||||
unbind M-Up # resize 5 rows up
|
||||
@ -64,7 +64,7 @@ unbind M-Left # resize 5 rows left
|
||||
# Edit configuration and reload
|
||||
bind C-e new-window -n 'tmux.conf' "sh -c '\${EDITOR:-vim} ~/.tmux.conf && tmux source ~/.tmux.conf && tmux display \"Config reloaded\"'"
|
||||
|
||||
# Reload tmux configuration
|
||||
# Reload tmux configuration
|
||||
bind C-r source-file ~/.tmux.conf \; display "Config reloaded"
|
||||
|
||||
# new window and retain cwd
|
||||
@ -86,16 +86,16 @@ bind -r [ previous-window
|
||||
bind -r ] next-window
|
||||
# bind -r h select-pane -t :.-
|
||||
# bind -r l select-pane -t :.+
|
||||
bind -r k select-pane -U
|
||||
bind -r j select-pane -D
|
||||
bind -r h select-pane -L
|
||||
bind -r l select-pane -R
|
||||
bind -r k select-pane -U
|
||||
bind -r j select-pane -D
|
||||
bind -r h select-pane -L
|
||||
bind -r l select-pane -R
|
||||
bind -r Tab last-window # cycle thru MRU tabs
|
||||
bind -r C-o swap-pane -D
|
||||
|
||||
|
||||
# Zoom pane
|
||||
bind + resize-pane -Z
|
||||
bind = resize-pane -Z
|
||||
# bind -r Left resize-pane -L 5
|
||||
# bind -r Down resize-pane -D 5
|
||||
# bind -r Up resize-pane -U 5
|
||||
@ -208,7 +208,7 @@ bind -T copy-mode-vi MouseDragEnd1Pane \
|
||||
send-keys -X copy-pipe "$yank"
|
||||
bind -T copy-mode-vi MouseDown1Pane select-pane \;\
|
||||
send-keys -X clear-selection
|
||||
|
||||
|
||||
# iTerm2 works with clipboard out of the box, set-clipboard already set to "external"
|
||||
# tmux show-options -g -s set-clipboard
|
||||
# set-clipboard on|external
|
||||
|
Reference in New Issue
Block a user