diff --git a/hooks/base16-tmux.fish b/hooks/base16-tmux.fish index 1ab1bb89..71e58dcd 100755 --- a/hooks/base16-tmux.fish +++ b/hooks/base16-tmux.fish @@ -30,7 +30,7 @@ end # ---------------------------------------------------------------------- # If base16-tmux is used, provide a file for base16-tmux to source -if test -d "$BASE16_TMUX_PLUGIN_PATH" +if test -d "$BASE16_TMUX_PLUGIN_PATH"; and command -v 'tmux' > /dev/null # Set current theme name set current_theme_name (cat "$BASE16_SHELL_THEME_NAME_PATH") diff --git a/hooks/base16-tmux.sh b/hooks/base16-tmux.sh index 8e052abd..9540f9b9 100755 --- a/hooks/base16-tmux.sh +++ b/hooks/base16-tmux.sh @@ -30,7 +30,7 @@ fi # ---------------------------------------------------------------------- # If base16-tmux is used, provide a file for base16-tmux to source -if [ -d "$BASE16_TMUX_PLUGIN_PATH" ]; then +if [[ -d "$BASE16_TMUX_PLUGIN_PATH" && "$(command -v 'tmux')" ]]; then # Set current theme name read current_theme_name < "$BASE16_SHELL_THEME_NAME_PATH"