0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

[pj-plugin] avoid using basename. migth be (a lot?) faster

This commit is contained in:
Frank Louwers 2013-02-13 13:39:47 +01:00
parent 9674a96b5b
commit df67f2ee30

View file

@ -43,7 +43,7 @@ function _pj () {
typeset -a projects
foreach i ($PROJECT_PATHS/*)
do
projects+=`basename $i`
projects+=(${i##*/})
done
_arguments '*:file:($projects)'