recommend reattach-to-user-namespace for OSX in health-check

This commit is contained in:
Jorge Morante 2017-10-06 18:37:08 +02:00
parent b4f58df938
commit 70f914ecba
1 changed files with 11 additions and 0 deletions

View File

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