Skip to content

Use xdg paths for config/history (on macos) #893

@DanCardin

Description

@DanCardin

I noticed the use of app_dirs in the config handling which appears to use $HOME/Library/Application Support/nu, which is very much not what I'd want for non-gui applications. Most cli tools seem to overwhelmingly (annoyingly) shove stuff into $HOME/., or (happily) support XDG (on both linux and macos).

As someone who commits their dotfiles, and would love to eventually use this as my default shell, I would really like for it to be ergonomic to commit any nushell config. Use of the XDG paths makes that ideal, as I can commit the entire ~/.config folder rather than use a tool to maintain symlinks.

I honestly care much less about the history as I wouldn't be committing it, but at that point, it would be nice if that were also saved in the normal xdg_(i guess data?)_home folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions