From db1facd1ded0bdfd37266540921a7ec72873984c Mon Sep 17 00:00:00 2001 From: rick Date: Sun, 6 Dec 2020 22:50:33 +0800 Subject: [PATCH] Fix the wrong sprintf --- completion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completion.go b/completion.go index dba5ff1..270fcb4 100644 --- a/completion.go +++ b/completion.go @@ -42,7 +42,7 @@ Get more details about onmyzsh from https://github.com/ohmyzsh/ohmyzsh Load the %s completion code for zsh[1] into the current shell source <(%s completion --type zsh) Set the %s completion code for zsh[1] to autoload on startup -%s completion --type zsh > "${fpath[1]}/_%s"`, rootName), +%s completion --type zsh > "${fpath[1]}/_%s"`, rootName, rootName, rootName, rootName, rootName, rootName), RunE: func(cmd *cobra.Command, _ []string) (err error) { shellType := completionOptions.Type switch shellType {