Skip to content

Commit

Permalink
bash-completion: include underscores
Browse files Browse the repository at this point in the history
`fundchannel_start` etc are not included in the bash-completion as
they include underscores in their names. this fixes this by including
underscores.
  • Loading branch information
niftynei authored and cdecker committed Jul 9, 2019
1 parent 4638995 commit a6516f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/lightning-cli.bash-completion
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) )
Expand Down

0 comments on commit a6516f4

Please sign in to comment.