9524db7398f405b26091f58fa8e2125d4e440a24

Author
mapshen <mapshen@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

autojump: fix loading when autojump is not in $PATH (#8074)

The `commands[autojump]` block errs out when autojump is not found, and the rest, which is intended to be used for loading `autojump`, does not get executed.

Diff

 1diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
 2index 13c1d00ed5f0f46d01b5250dfa001ddf6239567b..d80c88822155d0dc8fcc68c1c0ee269f18e664e4 100644
 3--- a/plugins/autojump/autojump.plugin.zsh
 4+++ b/plugins/autojump/autojump.plugin.zsh
 5@@ -1,8 +1,3 @@
 6-(( $+commands[autojump] )) || {
 7-  echo '[oh-my-zsh] Please install autojump first (https://github.com/wting/autojump)'
 8-  return
 9-}
10-
11 declare -a autojump_paths
12 autojump_paths=(
13   $HOME/.autojump/etc/profile.d/autojump.zsh         # manual installation