Skip to content

Commit

Permalink
Merge pull request #2836 from edusantana/bash-completion
Browse files Browse the repository at this point in the history
fix color completition
  • Loading branch information
markus2330 committed Jul 31, 2019
2 parents 19eeff1 + 8db8ebf commit da40250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/news/_preparation_next_release.md
Expand Up @@ -491,6 +491,7 @@ you up to date with the multi-language support provided by Elektra.
- `kdb list-tools` now supports `KDB_EXEC_PATH` environment variables that contain spaces. _(René Schwaiger)_
- `gen-gpg-testkey` is added to the default tools list (see [#2668](https://github.com/ElektraInitiative/libelektra/issues/2668))._(Peter Nirschl)_
- `kdb getenv` now executed correctly from within tests _(Markus Raab)_
- `kdb-bash-completion` was fixed (see [#2836](https://github.com/ElektraInitiative/libelektra/pull/2836)). _(Eduardo Santana)_
- <<TODO>>

- <<TODO>>
Expand Down
2 changes: 1 addition & 1 deletion scripts/kdb-bash-completion
Expand Up @@ -23,7 +23,7 @@ _kdb() {
# only kdb was entered yet, print a list of available commands
if [[ $COMP_CWORD -eq 1 ]]; then
local IFS=$'\n'
local commands=($(${kdbpath} 2> /dev/null | sed -e '0,/^Known commands are/d' | awk '{print $1}'))
local commands=($(${kdbpath} list-commands))
COMPREPLY=($(compgen -W '${commands[@]}' -- "${cur}"))
return
fi
Expand Down

0 comments on commit da40250

Please sign in to comment.