1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

drop the foreach, make it even shorter. thanks Marc Cornellà!

This commit is contained in:
Frank Louwers 2014-05-28 13:57:25 +02:00
parent df67f2ee30
commit bce74975d0

View file

@ -41,11 +41,8 @@ alias pjo="pj open"
function _pj () {
# might be possible to improve this using glob, without the basename trick
typeset -a projects
foreach i ($PROJECT_PATHS/*)
do
projects+=(${i##*/})
done
projects=($PROJECT_PATHS/*)
projects=$projects:t
_arguments '*:file:($projects)'
}