summaryrefslogtreecommitdiffstats
path: root/.tmux-osx.conf
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2021-12-15 16:56:13 +0100
committerAhmed Abdelhalim <[email protected]>2021-12-15 16:56:13 +0100
commit59a785e61b780716e8500394ecdebd669f866776 (patch)
treeba83c40d440b2c86bc58ad20a0ce6692b4e085c9 /.tmux-osx.conf
parent67b6fab8046ba45f6b829f91980ab07606c45667 (diff)
Update tmux configurations
Diffstat (limited to '.tmux-osx.conf')
-rw-r--r--.tmux-osx.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/.tmux-osx.conf b/.tmux-osx.conf
new file mode 100644
index 0000000..27a3bde
--- /dev/null
+++ b/.tmux-osx.conf
@@ -0,0 +1,4 @@
+# Fix OSX tmux copy issues
+# Ref: https://blog.subash.com.au/vim-style-copy-paste-in-tmux/
+set -g default-command "reattach-to-user-namespace -l ${SHELL}"
+bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'