mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Fix pj() function when no project has been specified
This commit is contained in:
parent
7f8851f52f
commit
7d298a3059
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue