small pixel drawing of a pufferfish dotfiles

new prompt
j3s j3s@c3f.net
Mon, 23 Nov 2020 19:02:48 -0600
commit

b1b6011926799b9fb59276d93f791f65f8cdf277

parent

61b93ae1abae19f1a4e5db3ec101bb272365abfd

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M bin/prompt.gobin/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) }