From 342412e4f048fe0d95fd67b6c54d1ab606103e48 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 23 Aug 2020 18:16:07 +0200 Subject: [PATCH 1/1] iterm2: Add iTerm 2 tools folder to search path --- plugins/iterm2/iterm2.zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/iterm2/iterm2.zshrc b/plugins/iterm2/iterm2.zshrc index 7373ca0..458ca68 100644 --- a/plugins/iterm2/iterm2.zshrc +++ b/plugins/iterm2/iterm2.zshrc @@ -9,6 +9,9 @@ axzsh_is_modern_terminal || return 91 [[ -z "$ITERM_SHELL_INTEGRATION_INSTALLED" ]] || return 91 [[ "${ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX-}$TERM" =~ "^screen" ]] && return 91 +# Add iTerm2 commands to PATH, when available. +[[ -d ~/.iterm2 ]] && path+=(~/.iterm2) + # Try to source user-local shell integration installed by iTerm2 itself, # and only fall back to the implementation here when not found. [[ -e "$HOME/.iterm2_shell_integration.zsh" ]] && source "$HOME/.iterm2_shell_integration.zsh" -- 2.39.2