completions/minikube: Stringify

This commit is contained in:
Fabian Homborg 2019-03-14 12:46:48 +01:00
parent c5d5089871
commit 3043d726bf

View file

@ -67,7 +67,7 @@ end
function __minikube_list_addons
if set -q argv[1]
minikube addons list | grep $argv[1] | string replace -r -- "- ([^:]*): .*" '$1'
minikube addons list | string match -- "*$argv[1]*" | string replace -r -- "- ([^:]*): .*" '$1'
else
minikube addons list | string replace -r -- "- ([^:]*): .*" '$1'
end