aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2006-09-15-ri-bash-completion.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-14 12:47:50 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-14 12:47:50 -0400
commit4b6c0e31385f5f27a151088c0a2b614495c4e589 (patch)
tree12243cdcd00704bc1a9d94ac9cc128459417370c /content/posts/2006-09-15-ri-bash-completion.html
downloadpablotron.org-4b6c0e31385f5f27a151088c0a2b614495c4e589.tar.bz2
pablotron.org-4b6c0e31385f5f27a151088c0a2b614495c4e589.zip
initial commit, including theme
Diffstat (limited to 'content/posts/2006-09-15-ri-bash-completion.html')
-rw-r--r--content/posts/2006-09-15-ri-bash-completion.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/content/posts/2006-09-15-ri-bash-completion.html b/content/posts/2006-09-15-ri-bash-completion.html
new file mode 100644
index 0000000..7b77187
--- /dev/null
+++ b/content/posts/2006-09-15-ri-bash-completion.html
@@ -0,0 +1,13 @@
+---
+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>
+
+