Skip to content

Feature Request: Make config granular #2

@danisztls

Description

@danisztls

This is a suggestion for a more granular and easy to setup solution.

  1. Have configuration for each program on a partial at /usr/share/xdg-force/.
  2. Have a script to link/unlink partials to $XDG_DATA_HOME/xdg-force/.
  3. Have a simple hook on .profile or similar traverse the directory and source all linked partials.

Usage:

force-xdg cargo
# Do you want to enable configuration 'cargo'? (y/n)

force-xdg cargo
# Configuration for 'cargo' is already in place, do you want to remove it? (y/n)

I have something similar in my dotfiles.

https://github.com/danisztls/dotfiles/blob/main/shell/profile#L73=
https://github.com/danisztls/dotfiles/tree/main/shell/config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions