double quotes for proper variable expansion

This commit is contained in:
mkcode 2014-11-19 04:21:11 +11:00
parent 8c3f25425e
commit f197d77b03

View file

@ -42,7 +42,7 @@ function _pj () {
typeset -a projects typeset -a projects
projects=($PROJECT_PATHS/*) projects=($PROJECT_PATHS/*)
projects=$projects:t projects=$projects:t
_arguments '*:file:($projects)' _arguments "*:file:($projects)"
} }
compdef _pj pj compdef _pj pj