Skip to content

Commit

Permalink
[devtools] OSH can now run the port of my completion script.
Browse files Browse the repository at this point in the history
It falls back on osh_completion instead of bash_completion.

More work to follow.
  • Loading branch information
Andy Chu committed Jan 22, 2019
1 parent 4871250 commit 4502115
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion devtools/completion.bash
Expand Up @@ -173,7 +173,12 @@ _comp_fallback=''
# _comp_fallback is invoked by my _my_default_completion, with the same 3 args
# as a completion function, i.e. -- "$@".
_maybe_set_comp_fallback() {
local _distro_script=/etc/bash_completion
local _distro_script
if test -n "$BASH_VERSION"; then
_distro_script='/etc/bash_completion'
else
_distro_script=~/git/oilshell/bash-completion/osh_completion
fi
local _distro_function=_completion_loader

# NOTE: _compbacllback
Expand Down

0 comments on commit 4502115

Please sign in to comment.