Skip to content

Commit

Permalink
Merge pull request #91 from yjinjo/master
Browse files Browse the repository at this point in the history
Disable Pterm for completion command
  • Loading branch information
yjinjo authored Dec 18, 2024
2 parents d98e476 + 65b2c22 commit 134a2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 134a2a7

Please sign in to comment.