From 759715946e9281a666b521aecf9ebef34de7f806 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 21 Apr 2017 13:19:20 -0700 Subject: [PATCH] Clean up tmux config --- assets/default/dotfiles/tmux.conf | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/assets/default/dotfiles/tmux.conf b/assets/default/dotfiles/tmux.conf index 3f70b3b..d801308 100644 --- a/assets/default/dotfiles/tmux.conf +++ b/assets/default/dotfiles/tmux.conf @@ -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"'