Skip to content

Install To Platform-Standard Locations | Reduce Home Directory Clutter #476

Open
@taep96

Description

@taep96

Motivations

Files are currently placed directly in $HOME, which creates clutter. Using standard platform directories would improve system integration.

  • Would you like to implement this feature? — Not sure.

Solution

  1. Use directories crate with the following fallback order:

    1. $XDG_DATA_HOME/espup
    2. $HOME/.local/share/espup
    3. $HOME/.espup
  2. Add flag to optionally symlink export-esp.sh from $HOME to $XDG_DATA_HOME/espup/export-esp.sh

  3. Create an extension-less version of the script with a shebang and export to $PATH - the $HOME symlink could point to this instead

Alternatives

  • Add an environment variable to customize the location — $ESP_HOME

Additional context

The directories crate provides cross-platform support for standard directory locations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions