--- date: "2006-09-15T17:33:53Z" title: RI Bash Completion --- <p>If you use <code>ri</code> in <code>bash</code>, add this little snippet to your <code>.bashrc</code> to enable tab-completion:</p> <pre><code>function _ri() { COMPREPLY=($(ri --list | grep "^${COMP_WORDS[COMP_CWORD]}")); } complete -F _ri ri </code></pre>