[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 5df89c7cffd97689eec37110e5b60fd6732e5266
Ville Skyttä
ville.skytta at iki.fi
Sun Oct 18 18:38:44 UTC 2009
The following commit has been merged in the master branch:
commit 5df89c7cffd97689eec37110e5b60fd6732e5266
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Oct 18 21:38:41 2009 +0300
Fix indentation.
diff --git a/contrib/ri b/contrib/ri
index 1d55089..5d2b7b5 100644
--- a/contrib/ri
+++ b/contrib/ri
@@ -64,33 +64,33 @@ _ri()
# integrated ri from Ruby 1.9
classes=( $( ri -c | ruby -ne 'if /^\s*$/..$stdin.eof then \
if /, [A-Z]+/ then print; end; end' ) )
- elif [ "$ri_version" = "ri 1.8a" ]; then
- classes=( $( ruby -W0 $ri_path | \
+ elif [ "$ri_version" = "ri 1.8a" ]; then
+ classes=( $( ruby -W0 $ri_path | \
ruby -ne 'if /^'"'"'ri'"'"' has/..$stdin.eof then \
if /^ .*[A-Z]/ then print; end; end' ))
- else
- classes=( $( ruby -W0 $ri_path | \
- ruby -ne 'if /^I have/..$stdin.eof then \
+ else
+ classes=( $( ruby -W0 $ri_path | \
+ ruby -ne 'if /^I have/..$stdin.eof then \
if /^ .*[A-Z]/ then print; end; end' ))
- fi
+ fi
- COMPREPLY=( $( compgen -W '${classes[@]}' -- "$cur" ) )
- if [[ "$cur" == [A-Z]* ]]; then
- # we're completing on class or module alone
- return 0
- fi
+ COMPREPLY=( $( compgen -W '${classes[@]}' -- "$cur" ) )
+ if [[ "$cur" == [A-Z]* ]]; then
+ # we're completing on class or module alone
+ return 0
+ fi
- # we're completing on methods
- method=$cur
- ri_get_methods
- }
- complete -F _ri ri
- }
+ # we're completing on methods
+ method=$cur
+ ri_get_methods
+}
+complete -F _ri ri
+}
- # Local variables:
- # mode: shell-script
- # sh-basic-offset: 4
- # sh-indent-comment: t
- # indent-tabs-mode: nil
- # End:
- # ex: ts=4 sw=4 et filetype=sh
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh
--
bash-completion
More information about the Bash-completion-commits
mailing list