From 4b6c0e31385f5f27a151088c0a2b614495c4e589 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 14 Oct 2021 12:47:50 -0400 Subject: initial commit, including theme --- content/posts/2006-09-15-ri-bash-completion.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 content/posts/2006-09-15-ri-bash-completion.html (limited to 'content/posts/2006-09-15-ri-bash-completion.html') 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 +--- + +

If you use ri in bash, add this little snippet to your .bashrc to +enable tab-completion:

+ +
function _ri() { COMPREPLY=($(ri --list | grep "^${COMP_WORDS[COMP_CWORD]}")); }
+complete -F _ri ri
+
+ + -- cgit v1.2.3