Browse Source

Enable tmux pasteboard config

master
10sr 6 years ago
parent
commit
62919a4b6e
Signed by: 10sr GPG Key ID: C384BB17CBB19347
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      tmux.conf

+ 4
- 4
tmux.conf View File

@@ -27,6 +27,10 @@ setw -g mode-keys vi
#setw -g mode-mouse off #setw -g mode-mouse off
#set -g default-command /bin/bash #set -g default-command /bin/bash


# Use pasteboard on MacOS
run-shell 'test "`uname`" = Darwin && tmux bind-key -T copy-mode-vi "Enter" send-keys -X copy-pipe-and-cancel "pbcopy"'
run-shell 'test "`uname`" = Darwin && tmux bind-key "]" run "pbpaste | tmux load-buffer - && tmux paste-buffer"'

#set -g default-path "$HOME" #set -g default-path "$HOME"


# try to set title of terminal tmux is running on # try to set title of terminal tmux is running on
@@ -48,7 +52,3 @@ set -g message-fg black
setw -g window-status-current-bg white setw -g window-status-current-bg white
setw -g window-status-current-fg black setw -g window-status-current-fg black
#setw -g window-status-attr bold #setw -g window-status-attr bold


#run-shell 'tmux bind-key -T copy-mode-vi "Enter" send-keys -X copy-pipe-and-cancel "pbcopy"'
#run-shell 'tmux bind-key bind-key "]" run "pbpaste | tmux load-buffer - && tmux paste-buffer"'

Loading…
Cancel
Save