- ruby
- thor
- thor-zsh_completion
$DOTFILES/zsh/scripts/completions> generated completion functions$DOTFILES/zsh/scripts/bin> symlink to executable scripts
- Make the script executable with
chmod +x ./example.rb - Generate the completion script by uncommenting the completion script in
example.rband run$ ./example.rb > $DOTFILES/zsh/scripts/completions - Comment the completion script and uncomment the CLI section in
example.rb - Create an executable symlink to the ruby script:
ln -s ./example.rb $DOTFILES/zsh/scripts/bin/example - Refresh/source shell.
examplecommand should be available with tab completion