Skip to content

Commit

Permalink
reattach-to-usernamespace wrapper no longer required(tmux-plugins/tmu…
Browse files Browse the repository at this point in the history
  • Loading branch information
foreverman committed Oct 23, 2018
1 parent a71fc9c commit 4804e6a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,23 @@ set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on

unbind [

bind Escape copy-mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X copy-selection
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection

bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind C-v run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"


unbind Up
bind Up new-window -d -n tmp \; swap-pane -s tmp.1 \; select-window -t tmp

unbind Down
bind Down last-window \; swap-pane -s tmp.1 \; kill-window -t tmp

set -g default-command "reattach-to-user-namespace -l /bin/bash"
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
bind C-v run "tmux set-buffer \"$(reattach-to-user-namespace pbpaste)\";tmux paste-buffer"


set -g display-panes-time 2000 #2s

Expand Down

0 comments on commit 4804e6a

Please sign in to comment.