diff --git a/dotfiles/.tmux-macos.conf b/dotfiles/.tmux-macos.conf deleted file mode 100644 index 206a649..0000000 --- a/dotfiles/.tmux-macos.conf +++ /dev/null @@ -1,5 +0,0 @@ -# Fix for clipboard in vim running inside tmux: -# See http://stackoverflow.com/a/40154047 -# See https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard -set -g default-command "reattach-to-user-namespace -l $SHELL" - diff --git a/dotfiles/.tmux.conf b/dotfiles/.tmux.conf index 1bf4462..f3ec7e3 100644 --- a/dotfiles/.tmux.conf +++ b/dotfiles/.tmux.conf @@ -82,7 +82,10 @@ set-environment -gu SHLVL set -g pane-active-border-fg colour1 %endif -# Apply platform specific configurations: +# Fix for clipboard in vim running inside tmux: # See http://www.economyofeffort.com/2013/07/29/reattach-to-user-namespace-the-fix-for-your-tmux-in-os-x-woes/ -if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-macos.conf' +# See http://stackoverflow.com/a/40154047 +# See https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard +if-shell 'test "$(uname)" = "Darwin"' \ + 'set -g default-command "reattach-to-user-namespace -l $SHELL"'