]> git.ekhem.eu.org Git - guix.git/commit
[bash] Define XDG base directories.
authorJakub Czajka <jakub@ekhem.eu.org>
Sat, 28 May 2022 15:44:37 +0000 (17:44 +0200)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
commit886631e2871237b2f207e938d01d24e137151780
tree20979d25c9c16c95a01ca2a6277444aaef4dc863
parent1cc6df732f266f1623196ed80d4c5861150f8fa1
[bash] Define XDG base directories.

XDG base directory standard [1] defines environment variables with
important paths in user home directory. For example, XDG_CONFIG_HOME
points to a directory with configuration files.

Many programs respect the XDG base directory specification. For
example, git looks for it dotfile as either $HOME/.gitconfig or
$XDG_CONFIG_HOME/git/config. Therefore, XDG environment variables
should be defined early during startup.

This commit adds 10-xdg.sh which defines XDG base directory
variables. Prefix '10-' ensures that the files will be sourced by
~/.profile before other files in ~/.config/profile.d.

[1] https://specifications.freedesktop.org/basedir-spec
bash/.config/profile.d/10-xdg.sh [new file with mode: 0644]