Commit bce74975 authored by Frank Louwers's avatar Frank Louwers
Browse files

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

parent df67f2ee
...@@ -41,11 +41,8 @@ alias pjo="pj open" ...@@ -41,11 +41,8 @@ alias pjo="pj open"
function _pj () { function _pj () {
# might be possible to improve this using glob, without the basename trick # might be possible to improve this using glob, without the basename trick
typeset -a projects typeset -a projects
foreach i ($PROJECT_PATHS/*) projects=($PROJECT_PATHS/*)
do projects=$projects:t
projects+=(${i##*/})
done
_arguments '*:file:($projects)' _arguments '*:file:($projects)'
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment