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
Ohmyzsh
Commits
7d298a30
Commit
7d298a30
authored
Aug 11, 2016
by
Marc Cornellà
Browse files
Fix pj() function when no project has been specified
parent
7f8851f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/pj/pj.plugin.zsh
View file @
7d298a30
...
@@ -15,6 +15,11 @@ pj () {
...
@@ -15,6 +15,11 @@ pj () {
project
=
$*
project
=
$*
fi
fi
if
[[
-z
"
$project
"
]]
;
then
echo
"You have to specify a project name."
return
fi
for
basedir
(
$PROJECT_PATHS
)
;
do
for
basedir
(
$PROJECT_PATHS
)
;
do
if
[[
-d
"
$basedir
/
$project
"
]]
;
then
if
[[
-d
"
$basedir
/
$project
"
]]
;
then
$cmd
"
$basedir
/
$project
"
$cmd
"
$basedir
/
$project
"
...
...
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