Skip to content

Separate .gitopolis.toml location from current working directory to allow running from anywhere #135

@peteringram0

Description

@peteringram0

The .gitopolis file is currently generated relative to the binary location. This setup works for users who download the application, place it alongside their Git repositories, and manually update it. However, most developers prefer installing tools via package managers for ease of installation and updates—Homebrew on macOS, winget on Windows, and various package managers like apt or yum on Linux.

The main obstacle preventing Gitopolis from being installed via these package managers is the config file location, which is currently referenced from a non-managed directory. Since Gitopolis should be accessible from anywhere within the PATH, it requires a standardized config file location across all supported systems.

Therefore, I propose standardizing the config file location across the supported platforms. For Windows, I would need some suggestions as I am not very familiar with it:

System Location
MacOS ~/.config/gitopolis.toml
Linux ~/.config/gitopolis.toml
Windows %LOCALAPPDATA%\gitopolis.toml

This change would prepare Gitopolis for inclusion in package managers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXRounding off sharp corners, eliminating noise, making complex things simple, adding lovable featuresawaiting-demandwaiting to see if anyone actually caresenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions