aboutsummaryrefslogtreecommitdiff
path: root/mac.tmux.config
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-01-01 22:49:01 +0000
committerCody Hiar <codyfh@gmail.com>2017-01-01 22:49:01 +0000
commiteb52f06b57807131310325c59348f31133977be8 (patch)
tree04a7bea8bdab14ce38394ac2b009dbaa1ed48e3e /mac.tmux.config
parenta0a1c68b3a532766d378df0f8d4e85610c70c7f1 (diff)
Fixing linux vs mac config
Diffstat (limited to 'mac.tmux.config')
-rw-r--r--mac.tmux.config10
1 files changed, 10 insertions, 0 deletions
diff --git a/mac.tmux.config b/mac.tmux.config
new file mode 100644
index 0000000..6dc1089
--- /dev/null
+++ b/mac.tmux.config
@@ -0,0 +1,10 @@
+# vim: syntax=conf
+
+# Setup 'v' to begin selection as in Vim
+bind -t vi-copy v begin-selection
+bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
+# Update default binding of `Enter` to also use copy-pipe
+unbind -t vi-copy Enter
+bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
+# Allow pbcopy inside of session
+set-option -g default-command "reattach-to-user-namespace -l zsh"