From 6f9330481aed0d4604a24f52860a2f3af24592bc Mon Sep 17 00:00:00 2001 From: Eragos Date: Sun, 10 Jul 2016 13:05:57 +0200 Subject: [PATCH] fix for #1 --- .tmux-osx.conf | 5 +++++ .tmux.conf | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 .tmux-osx.conf diff --git a/.tmux-osx.conf b/.tmux-osx.conf new file mode 100644 index 0000000..c6726cd --- /dev/null +++ b/.tmux-osx.conf @@ -0,0 +1,5 @@ +########################################## +### special settings for MacOS +########################################## +# url: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard +set-option -g default-command 'reattach-to-user-namespace-tmux -l "$SHELL"' \ No newline at end of file diff --git a/.tmux.conf b/.tmux.conf index 8534bba..ea5a810 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -136,9 +136,5 @@ bind M command-prompt -p "Man page:" "new-window -n 'man %1' 'exec man %1'" # Double tapping the prefix jumps to last window bind-key C-b last-window -########################################## -### special settings for MacOS -########################################## -# url: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard -#set-option -g default-command "reattach-to-user-namespace -l bash" -#set-option -g default-command "reattach-to-user-namespace -l zsh" +# special settings for MacOS +if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'