]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/iterm2/iterm2.zshrc
iterm2: Add iTerm 2 tools folder to search path
[ax-zsh.git] / plugins / iterm2 / iterm2.zshrc
index 7373ca0f78707c4d2b3c8b50bca4f81ff4566e31..458ca688f80e12a1645145ef68e1628acab93176 100644 (file)
@@ -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"