4 ms·
No clue if you've done these steps, and I'm not on Mac OS at the moment (also I use Terminal.app), but: In my main .tmux.conf I put: if-shell 'test "$(uname
by grimgrin 10y ago
No clue if you've done these steps, and I'm not on Mac OS at the moment (also I use Terminal.app), but:
In my main .tmux.conf I put:
if-shell 'test "$(uname -s)" = Darwin' 'source-file ~/.tmux-osx.conf'
And then in .tmux-osx.conf I add:
# https://robots.thoughtbot.com/tmux-copy-paste-on-os-x-a-better-future
# To copy/paste on OSX just brew install the following
# brew install reattach-to-user-namespace
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -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"
I only pointed out the separation of configs because it's kinda nice for my setup.
- brunoluiz 10y agoI had the same config, but I discovered what was missing. If you use zsh, you need to add this as well: set-option -g default-command "reattach-to-user-namespace -l zsh"