mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-22 00:16:31 +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-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
|
||||
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-s command-prompt -p "Send pane to:" "join-pane -t '%%'"
|
||||
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
|
||||
unbind [
|
||||
bind ` copy-mode
|
||||
unbind p
|
||||
bind p paste-buffer
|
||||
bind -t vi-copy v begin-selection
|
||||
bind -t vi-copy V rectangle-toggle
|
||||
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
|
||||
if-shell 'test "$(uname -s)" = "Darwin"' 'bind y run "tmux show-buffer | pbcopy"'
|
||||
|
Loading…
Reference in New Issue
Block a user