From 9524db7398f405b26091f58fa8e2125d4e440a24 Mon Sep 17 00:00:00 2001 From: mapshen Date: Tue, 27 Aug 2019 15:41:44 -0400 Subject: [PATCH] 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. --- plugins/autojump/autojump.plugin.zsh | 5 ----- 1 file changed, 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