#19104·nushell

Home folder does not shorten to ~> inside a distrobox container

Author: commie-cadenCreated Sep 28, 2026Updated Sep 29, 2026
Labelsstatus:needs-triage

Bug report form

  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.

Describe the bug

I'm on Bazzite. I use nushell (0.99.1) on my host system (based on Fedora 44). I have a mostly stock config. The home folder (/var/home/user) appears as ~>. However, when I enter my Archlinux Distrobox container using Nushell version 0.116.0, the path appears as /var/home/user. I'm not sure if this is a bug with Distrobox specifically, or an intended version difference with the defaults. I'm assuming the former because shortening the home path to ~ is common practice and default in most shells.

How to reproduce

  1. Enter Archlinux distrobox
  2. Install nushell
  3. Start nushell

Expected behavior

Home folder path to be shortened to ~>

Configuration

nushell
$env.config.show_banner = false
$env.config.buffer_editor = "/usr/bin/hx"
$env.config.datetime_format = {
    normal: '%a, %d %b %Y %H:%M:%S %z'
    table: '%m/%d/%y %H:%M:%S  '
}

# sync with nushell editor config for legacy applications
$env.EDITOR = $env.config.buffer_editor

# show Bazzite startup
if ("/usr/libexec/ublue-motd" | path exists) {
    if ("~/.local/share/scripts/ublue-motd.nu" | path exists) {
        ~/.local/share/scripts/ublue-motd.nu
    }
} else {
    if (which fastfetch | is-not-empty) {
        fastfetch
    }
}