BREAKING CHANGE: The `pj` command has been rewritten with new subcommands.
Existing usage might no longer work. Use `pj add`, `pj mv`, `pj rm`, `pj ls`,
and `pj open -e` instead.
Co-authored-by: ibrahimcetin <mail@ibrahimcetin.dev>
- Use `emulate -L zsh` to make all variables local.
- Use `shwordsplit` to interpret `$cmd` spaces correctly.
- Rename `$project` and `$file` variables to the more appropriate `$basedir`
and `$project`.
- `$PROJECT_PATHS/*` wasn't working correctly. You have to iterate over
its elements in order to use globbing with it.
- The `$projects:t` line wasn't necessary if we used `compadd`.
- `compadd` better supports destructuring an array with spaces in some
of its elements.