Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
b4c06f2b
"vscode:/vscode.git/clone" did not exist on "dfe36d7b7b6d70e5179f57afadfd923a36b3ff5a"
Commit
b4c06f2b
authored
Apr 09, 2019
by
Marc Cornellà
Browse files
Complain when no autojump script was found
parent
fd105b6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/autojump/autojump.plugin.zsh
View file @
b4c06f2b
...
@@ -28,7 +28,12 @@ done
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment