From 70f914ecbac73298b4962d9e02143cff8fac7afb Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Fri, 6 Oct 2017 18:37:08 +0200 Subject: [PATCH] recommend reattach-to-user-namespace for OSX in health-check --- scripts/health-check.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/health-check.sh b/scripts/health-check.sh index 8135c41..7106922 100755 --- a/scripts/health-check.sh +++ b/scripts/health-check.sh @@ -158,6 +158,17 @@ function perform_health_check() { healthy=0 fi + if [[ $(version_major "$TMUX_VERSION") -le "2" ]] && \ + [[ $(version_minor "$TMUX_VERSION") -lt "6" ]] && \ + [[ "$OSTYPE" == "darwin"* ]] && \ + [[ $(program_exists "reattach-to-user-namespace") == "0" ]]; + then + log_message " * It's recommended to install 'reattach-to-user-namespace' for better" + log_message " clipboard integration in OSX." + log_message " Please run 'brew install reattach-to-user-namespace'" + healthy=0 + fi + if [[ $healthy -eq 0 ]]; then while [[ $(is_tmux_ready) = 0 ]]; do : # waiting for-tmux