Skip to content

Commit

Permalink
Fix case where tmux could be called even if it's not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
JamyGolden committed Dec 18, 2023
1 parent fa32028 commit d5f1f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hooks/base16-tmux.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion hooks/base16-tmux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit d5f1f91

Please sign in to comment.