commit a912cec7f4bf4dd88852ede95604ac05152bc24b parent 6c5926ef2c9dc2135e6ab69f3147f4af10be0dff Author: Anders Damsgaard <anders.damsgaard@geo.au.dk> Date: Wed, 9 Mar 2016 11:55:21 -0800 make clipboard work in osx and linux Diffstat:
M | .tmux.conf | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.tmux.conf b/.tmux.conf @@ -18,7 +18,7 @@ unbind p bind p paste-buffer bind-key -t vi-copy 'v' begin-selection #bind-key -t vi-copy 'y' copy-selection -bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" +bind-key -t vi-copy y copy-pipe "if [ `uname | grep -q Darwin` ]; then reattach-to-user-namespace pbcopy; else xclip -i -sel clipboard; fi" # vi-like movement #bind-key k select-pane -U