···2828 } else {
2929 promptRoot = filepath.Base(gitRoot)
3030 }
3131- // subtract the git toplevel "/home/j3s"
3232- // from the cwd "/home/j3s/code/nongitdir"
3131+ // subtract the git toplevel "/home/<user>"
3232+ // from the cwd "/home/<user>/code/nongitdir"
3333 // to get the suffix "/code/nongitdir"
3434 // os.cwd gets the symlink, git does not
3535 suffix := cwd[len(gitRoot):]