[pj-plugin] avoid using basename. migth be (a lot?) faster
This commit is contained in:
parent
9674a96b5b
commit
df67f2ee30
@ -43,7 +43,7 @@ function _pj () {
|
|||||||
typeset -a projects
|
typeset -a projects
|
||||||
foreach i ($PROJECT_PATHS/*)
|
foreach i ($PROJECT_PATHS/*)
|
||||||
do
|
do
|
||||||
projects+=`basename $i`
|
projects+=(${i##*/})
|
||||||
done
|
done
|
||||||
|
|
||||||
_arguments '*:file:($projects)'
|
_arguments '*:file:($projects)'
|
||||||
|
Loading…
Reference in New Issue
Block a user