alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Remove unnecessary argument
author
Jes Olson
date
4 years ago
(Nov 24, 2021, 2:33 PM -0600)
commit
0c0c2033
0c0c203312c47169e6532b5804766361b52f574a
parent
ab07bf43
ab07bf437599a30056c034514d389d3bc6c0e730
+2
-2
1 changed file
Expand all
Collapse all
Unified
Split
bin
prompt.go
+2
-2
bin/prompt.go
Reviewed
···
11
11
12
12
// getRepoRoot returns the full path to the root
13
13
// of the closest git dir
14
14
-
func getRepoRoot(pwd string) string {
14
14
+
func getRepoRoot() string {
15
15
var rootPath string
16
16
17
17
path, err := exec.Command("git", "rev-parse", "--show-toplevel").Output()
···
41
41
emoji := resolveEmoji(host)
42
42
fmt.Printf("%s %s ", now, emoji)
43
43
44
44
-
gitRoot := getRepoRoot(cwd)
44
44
+
gitRoot := getRepoRoot()
45
45
46
46
var prefix string
47
47
if gitRoot == home {