diff options
Diffstat (limited to '.oh-my-zsh/plugins/pj/pj.plugin.zsh')
-rw-r--r-- | .oh-my-zsh/plugins/pj/pj.plugin.zsh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/.oh-my-zsh/plugins/pj/pj.plugin.zsh b/.oh-my-zsh/plugins/pj/pj.plugin.zsh deleted file mode 100644 index e36d492..0000000 --- a/.oh-my-zsh/plugins/pj/pj.plugin.zsh +++ /dev/null @@ -1,37 +0,0 @@ -alias pjo="pj open" - -pj () { - emulate -L zsh - - cmd="cd" - project=$1 - - if [[ "open" == "$project" ]]; then - shift - project=$* - cmd=${=EDITOR} - else - project=$* - fi - - for basedir ($PROJECT_PATHS); do - if [[ -d "$basedir/$project" ]]; then - $cmd "$basedir/$project" - return - fi - done - - echo "No such project '${project}'." -} - -_pj () { - emulate -L zsh - - typeset -a projects - for basedir ($PROJECT_PATHS); do - projects+=(${basedir}/*(/N)) - done - - compadd ${projects:t} -} -compdef _pj pj |