chiark / gitweb /
el/dot-emacs.el (mdw-fontify-rust): Fix integer literal syntax.
[profile] / dot / bash-completion
CommitLineData
be7dba95
MW
1### -*-sh-*-
2
3[ "$(type -t _command)" = "function" ] &&
4complete -F _command r rootly
4cdeb0d0
MW
5
6declare -a _hyperspec_completions
7_hyperspec_made_completions=no
8_complete-hyperspec () {
9 case "$_hyperspec_made_completions" in
10 no)
11 _hyperspec_completions=($(hyperspec -l))
12 _hyperspec_made_completions=yes
13 ;;
14 esac
15 COMPREPLY=()
16 local -i i=0
17 local prefix=${COMP_WORDS[$COMP_CWORD]}
18 for sym in "${_hyperspec_completions[@]}"; do
19 case "$sym" in
20 $prefix*)
21 COMPREPLY[$i]=$sym
22 i+=1
23 ;;
24 esac
25 done
26}
27complete -F _complete-hyperspec hyperspec