mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-14 11:34:22 +01:00
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.
This commit is contained in:
committed by
Christian Decker
parent
4638995037
commit
a6516f477b
@@ -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" ) )
|
||||
|
||||
Reference in New Issue
Block a user