diff options
author | mapshen <mapshen@users.noreply.github.com> | 2019-08-27 15:41:44 -0400 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-08-27 21:41:44 +0200 |
commit | 9524db7398f405b26091f58fa8e2125d4e440a24 (patch) | |
tree | 9f1d991dae88f8890485d21671c08d6b7bc900b0 | |
parent | 2217a7c803f0db15e1d5d8465854e0277d4ca200 (diff) | |
download | zsh-9524db7398f405b26091f58fa8e2125d4e440a24.tar.gz zsh-9524db7398f405b26091f58fa8e2125d4e440a24.tar.bz2 zsh-9524db7398f405b26091f58fa8e2125d4e440a24.zip |
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.
-rw-r--r-- | plugins/autojump/autojump.plugin.zsh | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh index 13c1d00ed..d80c88822 100644 --- a/plugins/autojump/autojump.plugin.zsh +++ b/plugins/autojump/autojump.plugin.zsh @@ -1,8 +1,3 @@ -(( $+commands[autojump] )) || { - echo '[oh-my-zsh] Please install autojump first (https://github.com/wting/autojump)' - return -} - declare -a autojump_paths autojump_paths=( $HOME/.autojump/etc/profile.d/autojump.zsh # manual installation |