small pixel drawing of a pufferfish dotfiles

Remove unnecessary argument
Jes Olson jolson@digitalocean.com
Wed, 24 Nov 2021 14:33:29 -0600
commit

0c0c203312c47169e6532b5804766361b52f574a

parent

ab07bf437599a30056c034514d389d3bc6c0e730

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

jump to
M bin/prompt.gobin/prompt.go

@@ -11,7 +11,7 @@ )

// getRepoRoot returns the full path to the root // of the closest git dir -func getRepoRoot(pwd string) string { +func getRepoRoot() string { var rootPath string path, err := exec.Command("git", "rev-parse", "--show-toplevel").Output()

@@ -41,7 +41,7 @@ now := time.Now().Format("15:04:05")

emoji := resolveEmoji(host) fmt.Printf("%s %s ", now, emoji) - gitRoot := getRepoRoot(cwd) + gitRoot := getRepoRoot() var prefix string if gitRoot == home {