mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
[pj-plugin] avoid using basename. migth be (a lot?) faster
This commit is contained in:
1 parent
9674a96b5b
commit
df67f2ee30
1 file changed
+1
-1
@@ -43,7 +43,7 @@ function _pj () {
|
||||
typeset -a projects
|
||||
foreach i ($PROJECT_PATHS/*)
|
||||
do
|
||||
projects+=`basename $i`
|
||||
projects+=(${i##*/})
|
||||
done
|
||||
|
||||
_arguments '*:file:($projects)'
|
||||
|
||||
Reference in new issue
Block a user