diff --git a/plugins/pj/pj.plugin.zsh b/plugins/pj/pj.plugin.zsh index f9d7f8e27..bb3d9c058 100644 --- a/plugins/pj/pj.plugin.zsh +++ b/plugins/pj/pj.plugin.zsh @@ -15,6 +15,11 @@ pj () { project=$* fi + if [[ -z "$project" ]]; then + echo "You have to specify a project name." + return + fi + for basedir ($PROJECT_PATHS); do if [[ -d "$basedir/$project" ]]; then $cmd "$basedir/$project"