mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
[pj-plugin] avoid using basename. migth be (a lot?) faster
This commit is contained in:
parent
9674a96b5b
commit
df67f2ee30
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function _pj () {
|
|||
typeset -a projects
|
||||
foreach i ($PROJECT_PATHS/*)
|
||||
do
|
||||
projects+=`basename $i`
|
||||
projects+=(${i##*/})
|
||||
done
|
||||
|
||||
_arguments '*:file:($projects)'
|
||||
|
|
Loading…
Reference in a new issue