From 65b2c22c223f7604f526d407d916633515a3a07b Mon Sep 17 00:00:00 2001 From: Youngjin Jo Date: Thu, 19 Dec 2024 02:15:29 +0900 Subject: [PATCH] refactor: disable pterm for completion command Signed-off-by: Youngjin Jo --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 7992f37..fbed62c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -95,7 +95,7 @@ func init() { fmt.Fprintf(os.Stderr, "Warning: Cache loading timed out\n") } - if len(os.Args) > 1 && os.Args[1] == "__complete" { + if len(os.Args) > 1 && (os.Args[1] == "__complete" || os.Args[1] == "completion") { pterm.DisableColor() }