What I Learned Today
I spent some time this afternoon thinking about automation with Ruby. Even though I used to use it a lot, I've fallen off on using Thor, mainly because of API changes in Thor, and my move to zsh. I ported my bash completion script for thor to zsh, and it was way easier than bash:
_thor() {
compadd `thor list | grep -vP '^[\#\-]|^\s*$' |
sed -e '1d' -e 's/[^a-zA-Z0-9_\-\:].*$//'`
}
compdef _thor thor
Published: