Skip to content

Commit

Permalink
fix color completition
Browse files Browse the repository at this point in the history
  • Loading branch information
edusantana committed Jul 30, 2019
1 parent 09ef913 commit 8166fe1
Showing 1 changed file with 1 addition and 1 deletion.
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} 2> /dev/null | sed -e '0,/^Known commands are/d' | awk '{print $1}' | sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g" ))
COMPREPLY=($(compgen -W '${commands[@]}' -- "${cur}"))
return
fi
Expand Down

0 comments on commit 8166fe1

Please sign in to comment.