summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-09-25 07:19:37 +0200
committerxengineering <me@xengineering.eu>2025-09-25 07:35:06 +0200
commit4656b64c9a468898cb031980795f249feec1743f (patch)
tree4853ab2a8322e245d0d5e8fc77527e75b6754bda
parent756c51e7c24a30f272f2f260010045f430cc36d1 (diff)
downloaddotfiles-4656b64c9a468898cb031980795f249feec1743f.tar
dotfiles-4656b64c9a468898cb031980795f249feec1743f.tar.zst
dotfiles-4656b64c9a468898cb031980795f249feec1743f.zip
environment.d: Add path.conf
This handles extension of the `PATH` environment variable with systemd's environment.d folder instead of using it in e.g. `~/.profile`. The advantage is that `~/.profile` is not sourced by everything. The purpose of environment.d is to pass the environment to everything the user uses. Notably also window managers which might not source `~/.profile` leading to not showing up programs in `~/.local/bin` in the program menu. See `man 5 environment.d` for details.
-rw-r--r--environment.d/path.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/environment.d/path.conf b/environment.d/path.conf
new file mode 100644
index 0000000..0d7c0fb
--- /dev/null
+++ b/environment.d/path.conf
@@ -0,0 +1 @@
+PATH="${HOME}/.local/bin:${PATH}"