From 862ae87389ae84e004d70167c41a21c7d990a44d Mon Sep 17 00:00:00 2001 From: darosior Date: Sat, 18 May 2019 00:14:33 +0200 Subject: [PATCH] Fix bash completion --- 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 a6fa6503d..b948df068 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/^command=//p') + helpopts=$($lightning_cli -H help 2>/dev/null | sed -n 's/^[a-z]/&/p' | sed '$ d') fi COMPREPLY=( $( compgen -W "$helpopts $globalcmds" -X "*," -- "$cur" ) )