From 0e52fc18cc79fc75651ac58ae84eb8d27bb67477 Mon Sep 17 00:00:00 2001 From: Oliver Albertini Date: Sun, 11 Nov 2018 12:05:22 -0800 Subject: [PATCH] Wrap shell completion command in if statement Was discussed in this issue: https://github.com/tmux-python/tmuxp/issues/166 --- doc/cli.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/cli.rst b/doc/cli.rst index b3349b875d4..102d3b674de 100644 --- a/doc/cli.rst +++ b/doc/cli.rst @@ -14,7 +14,10 @@ In zsh (``~/.zshrc``) or bash (``~/.bashrc``): .. code-block:: sh - eval "$(_TMUXP_COMPLETE=source tmuxp)" + if command -v tmuxp >/dev/null; then + eval "$(_TMUXP_COMPLETE=source tmuxp)" + fi + .. _cli_freeze: