From a6516f477b1d98b9d8be8f0b1ef5085f7faf3c3e Mon Sep 17 00:00:00 2001 From: lisa neigut Date: Mon, 8 Jul 2019 12:35:00 -0500 Subject: [PATCH] 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. --- contrib/lightning-cli.bash-completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/lightning-cli.bash-completion b/contrib/lightning-cli.bash-completion index d5879d558..9c705d0d9 100644 --- a/contrib/lightning-cli.bash-completion +++ b/contrib/lightning-cli.bash-completion @@ -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" ) )