Browse Source

Fix bash completion

htlc_accepted_hook
darosior 6 years ago
committed by Rusty Russell
parent
commit
862ae87389
  1. 2
      contrib/lightning-cli.bash-completion

2
contrib/lightning-cli.bash-completion

@ -31,7 +31,7 @@ _lightning_cli() {
# get the regular commands # get the regular commands
if [[ -z "$cur" || "$cur" =~ ^[a-z] ]]; then 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 fi
COMPREPLY=( $( compgen -W "$helpopts $globalcmds" -X "*," -- "$cur" ) ) COMPREPLY=( $( compgen -W "$helpopts $globalcmds" -X "*," -- "$cur" ) )

Loading…
Cancel
Save