From 690d4e1a54839ab4c9f27283d120c04ac36620c0 Mon Sep 17 00:00:00 2001 From: comp500 Date: Tue, 22 Jun 2021 00:52:41 +0100 Subject: [PATCH] Use LF instead of CRLF endings when appending to .bashrc --- utils/completion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/completion.go b/utils/completion.go index 60c1a1f..fd5ccf1 100644 --- a/utils/completion.go +++ b/utils/completion.go @@ -90,7 +90,7 @@ Please note that the completions may be incomplete or broken, see https://github fmt.Printf("Failed to open bashrc: %s\n", err) os.Exit(1) } - _, err = f.WriteString("\r\n" + command + "\r\n") + _, err = f.WriteString("\n" + command + "\n") if err != nil { fmt.Printf("Failed to write to bashrc: %s\n", err) _ = f.Close()