remove the need to separate tmux config files

This commit is contained in:
Fernando Schauenburg 2019-02-27 02:44:04 +01:00
parent 54f1df3e90
commit 6585f00059
2 changed files with 5 additions and 7 deletions

View file

@ -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"

View file

@ -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"'