unix - Can not populate zsh autocompletion with simple ls output -
the problem can't find way populate boxes array. here's code:
local expl declare -a boxes boxes = $(ls $home/.vagrant/boxes --color=none) _wanted boxes expl 'help' compadd $boxes throws exception:
vagrant __box_list:13: command not found: boxes __box_list:13: command not found: boxes __box_list:13: command not found: boxes ls command works fine if tried manually:
ls $home/.vagrant/boxes --color=none lucid32 lucid64 where mistake?
zsh doesn't seem spaces around =.
boxes=$(ls $home/.vagrant/boxes --color=none) works, gets step further, maybe.
Comments
Post a Comment