mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-09 17:00:44 +01:00
[pj-plugin] avoid using basename. migth be (a lot?) faster
This commit is contained in:
@@ -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