Marc Cornellà
67cc59b425
style: some code style fixes
4 years ago
Marc Cornellà
774c4eca6f
Revert "Fix pj() function when no project has been specified"
...
This reverts commit 7d298a3059 .
10 years ago
Marc Cornellà
bec53135e4
Fix shwordsplit bug when a basedir contains spaces
...
The `shwordsplit` option affects all variables and we only need to split
the `$EDITOR` variable. Because of that, using `${=spec}` is a much better
alternative.
More info at
http://zsh.sourceforge.net/Doc/Release/Expansion.html#index-SH_005fWORD_005fSPLIT_002c-toggle
10 years ago
Marc Cornellà
7d298a3059
Fix pj() function when no project has been specified
10 years ago
Marc Cornellà
7f8851f52f
Refactor pj function
...
- 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`.
10 years ago
Marc Cornellà
c9c11d605f
Fix _pj completion function
...
- `$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.
10 years ago
Marc Cornellà
26bef0942b
Add Readme to pj plugin
10 years ago
Marc Cornellà
525ee50815
Clean up comments in pj plugin file and reorganise
10 years ago
Kravchuk S.V
0c04470f63
[~] fix plugin pj
...
bce74975d0
11 years ago
Frank Louwers
bce74975d0
drop the foreach, make it even shorter. thanks Marc Cornellà!
12 years ago
Frank Louwers
df67f2ee30
[pj-plugin] avoid using basename. migth be (a lot?) faster
13 years ago
Frank Louwers
9674a96b5b
[pj-plugin] delete ugly ls -l | awk print $9 thing to use something not depending on date format + add support for projects with spaces in them
13 years ago
Toon Claes
631a8473e2
added pj.plugin
13 years ago