*
Jes Olson j3s@c3f.net
Tue, 29 Apr 2025 13:37:42 -0500
2 files changed,
3 insertions(+),
3 deletions(-)
M
bin/prompt.go
→
bin/prompt.go
@@ -28,8 +28,8 @@ promptRoot = "~"
} else { promptRoot = filepath.Base(gitRoot) } - // subtract the git toplevel "/home/j3s" - // from the cwd "/home/j3s/code/nongitdir" + // subtract the git toplevel "/home/<user>" + // from the cwd "/home/<user>/code/nongitdir" // to get the suffix "/code/nongitdir" // os.cwd gets the symlink, git does not suffix := cwd[len(gitRoot):]