- 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.rb
and 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.
example
command should be available with tab completion