Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created November 12, 2013 00:05
Show Gist options
  • Select an option

  • Save aaronpk/7422888 to your computer and use it in GitHub Desktop.

Select an option

Save aaronpk/7422888 to your computer and use it in GitHub Desktop.
Tab-complete for `chruby`
_ruby_versions()
{
COMPREPLY=`echo $RUBIES | xargs -n 1 basename`
}
complete -F _ruby_versions "chruby"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment