xonsh / xonsh

:shell: Python-powered shell. Full-featured and cross-platform.
http://xon.sh
Other
8.19k stars 630 forks source link

The Default Working Directory is `/usr/home/$USER` #5212

Closed VehementHam closed 9 months ago

VehementHam commented 9 months ago

xonfig

``` +------------------+----------------------------+ | xonsh | 0.11.0 | | Git SHA | 337cf25a | | Commit Date | Nov 17 15:37:41 2021 | | Python | 3.9.18 | | PLY | 3.11 | | have readline | True | | prompt toolkit | 3.0.39 | | shell type | prompt_toolkit | | history backend | json | | pygments | 2.16.1 | | on posix | True | | on linux | False | | on darwin | False | | on windows | False | | on cygwin | False | | on msys2 | False | | is superuser | False | | default encoding | utf-8 | | xonsh encoding | utf-8 | | encoding errors | surrogateescape | | on jupyter | False | | jupyter kernel | None | | xontrib | [] | | RC file 1 | /home/vehementham/.xonshrc | +------------------+----------------------------+ ```

Expected Behavior

When I open Xonsh, the working directory should be $HOME.

Current Behavior

When I open Xonsh, the default working directory is /usr/home/$USER

cd enters ~/ echo $HOME ouputs /home/vehementham, vehementham being the user.

Traceback (if applicable)

``` traceback ```

Steps to Reproduce

I installed Xonsh through pkg. I am using FreeBSD. I set it as my default shell using chsh. I later added it to /etc/shells.

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

anki-code commented 9 months ago

Version 0.11.0 is old. Try to update xonsh: xpip install -U xonsh

gforsyth commented 9 months ago

Closing this out, please comment if the issue appears on newer versions.