mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
Fix bash completion
This commit is contained in:
parent
4370ffa978
commit
862ae87389
@ -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" ) )
|
||||
|
Loading…
Reference in New Issue
Block a user