new prompt
j3s j3s@c3f.net
Mon, 23 Nov 2020 19:02:48 -0600
2 files changed,
2 insertions(+),
1 deletions(-)
M
bin/prompt.go
→
bin/prompt.go
@@ -23,7 +23,6 @@ }
branchname := strings.TrimSuffix(string(out), "\n") fmt.Printf("\033[38;5;162m[%s]\033[0m ", host) - fmt.Printf("%s ", branchname) parts = strings.Split(cwd, "/") for i, part := range parts {@@ -37,4 +36,6 @@ fmt.Printf("/")
} } } + + fmt.Printf(" %s", branchname) }