mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
Fix bash completion.
At some point lightning-cli help defaulted to human readable format, the additional -H broke the bash completion. Changelog-Fixed: bash completion on lightning-cli now works again
This commit is contained in:
parent
97e3d61748
commit
b6285ffa5d
1 changed files with 1 additions and 1 deletions
|
@ -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 help 2>/dev/null | sed -n 's/^\([a-z][a-z_-]*\).*/\1/p' | sed '$ d')
|
||||
fi
|
||||
|
||||
COMPREPLY=( $( compgen -W "$helpopts $globalcmds" -X "*," -- "$cur" ) )
|
||||
|
|
Loading…
Add table
Reference in a new issue