bash-completion: include underscores

`fundchannel_start` etc are not included in the bash-completion as
they include underscores in their names. this fixes this by including
underscores.
This commit is contained in:
lisa neigut 2019-07-08 12:35:00 -05:00 committed by Christian Decker
parent 4638995037
commit a6516f477b
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ _lightning_cli() {
# get the regular commands
if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then
helpopts=$($lightning_cli -H help 2>/dev/null | sed -n 's/^\([a-z][a-z-]*\).*/\1/p' | sed '$ d')
helpopts=$($lightning_cli -H help 2>/dev/null | sed -n 's/^\([a-z][a-z_-]*\).*/\1/p' | sed '$ d')
fi
COMPREPLY=( $( compgen -W "$helpopts $globalcmds" -X "*," -- "$cur" ) )