1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 23:30:08 +00:00

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.
This commit is contained in:
mapshen 2019-08-27 15:41:44 -04:00 committed by Marc Cornellà
parent 2217a7c803
commit 9524db7398

View file

@ -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