mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
Complain when no autojump script was found
This commit is contained in:
parent
fd105b6e52
commit
b4c06f2b50
1 changed files with 6 additions and 1 deletions
|
@ -28,7 +28,12 @@ done
|
||||||
# if no path found, try Homebrew
|
# if no path found, try Homebrew
|
||||||
if (( ! found && $+commands[brew] )); then
|
if (( ! found && $+commands[brew] )); then
|
||||||
file=$(brew --prefix)/etc/profile.d/autojump.sh
|
file=$(brew --prefix)/etc/profile.d/autojump.sh
|
||||||
[[ -f "$file" ]] && source "$file"
|
if [[ -f "$file" ]]; then
|
||||||
|
source "$file"
|
||||||
|
found=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
(( ! found )) && echo '[oh-my-zsh] autojump script not found'
|
||||||
|
|
||||||
unset autojump_paths file found
|
unset autojump_paths file found
|
||||||
|
|
Loading…
Reference in a new issue