@@ -509,9 +509,10 @@ func (s *sidebarCmp) currentModelBlock() string {
509509func cwd() string {
510510 cwd := config.WorkingDirectory()
511511 t := styles.CurrentTheme()
512− // replace home directory with ~
512+ // Replace home directory with ~, unless we're at the top level of the
513+ // home directory).
513514 homeDir, err := os.UserHomeDir()
514− if err == nil {
515+ if err == nil && cwd != homeDir {
515516 cwd = strings.ReplaceAll(cwd, homeDir, "~")
516517 }
517518 return t.S().Muted.Render(cwd)