mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 04:36:29 +00:00
Clean up tmux config
This commit is contained in:
parent
387343357a
commit
759715946e
@ -5,9 +5,6 @@ set-option -g default-shell $SHELL
|
|||||||
set-option -g set-titles on
|
set-option -g set-titles on
|
||||||
set-option -g set-titles-string '[#S:#I] #W'
|
set-option -g set-titles-string '[#S:#I] #W'
|
||||||
|
|
||||||
# copy and paster
|
|
||||||
# if-shell 'test "$(uname -s)" = "Darwin"' 'set-option -g default-command "reattach-to-user-namespace-tmux $SHELL"'
|
|
||||||
|
|
||||||
# look good
|
# look good
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
|
|
||||||
@ -38,17 +35,16 @@ bind -r K swap-pane -U
|
|||||||
bind C-j command-prompt -p "Join pane from:" "join-pane -s '%%'"
|
bind C-j command-prompt -p "Join pane from:" "join-pane -s '%%'"
|
||||||
bind C-s command-prompt -p "Send pane to:" "join-pane -t '%%'"
|
bind C-s command-prompt -p "Send pane to:" "join-pane -t '%%'"
|
||||||
bind C-b break-pane
|
bind C-b break-pane
|
||||||
# move between windows
|
|
||||||
# bind -r C-h select-window -t :-
|
|
||||||
# bind -r C-l select-window -t :+
|
|
||||||
# use vim style copy mode
|
# use vim style copy mode
|
||||||
unbind [
|
unbind [
|
||||||
bind ` copy-mode
|
bind ` copy-mode
|
||||||
unbind p
|
|
||||||
bind p paste-buffer
|
|
||||||
bind -t vi-copy v begin-selection
|
bind -t vi-copy v begin-selection
|
||||||
bind -t vi-copy V rectangle-toggle
|
bind -t vi-copy V rectangle-toggle
|
||||||
bind -t vi-copy y copy-selection
|
bind -t vi-copy y copy-selection
|
||||||
|
unbind p
|
||||||
|
bind p paste-buffer
|
||||||
|
# rebind previous-window
|
||||||
|
bind b previous-window
|
||||||
|
|
||||||
# after copying to a tmux buffer, hit y again to copy to clipboard
|
# after copying to a tmux buffer, hit y again to copy to clipboard
|
||||||
if-shell 'test "$(uname -s)" = "Darwin"' 'bind y run "tmux show-buffer | pbcopy"'
|
if-shell 'test "$(uname -s)" = "Darwin"' 'bind y run "tmux show-buffer | pbcopy"'
|
||||||
|
Loading…
Reference in New Issue
Block a user