]> git.ekhem.eu.org Git - guix.git/commitdiff
[bash] Source `.profile`.
authorJakub Czajka <jakub@ekhem.eu.org>
Thu, 22 Dec 2022 17:48:30 +0000 (18:48 +0100)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
Guix puts its environment variables inside `.profile`. However, it is
not sourced automatically. This commit sources it in `.bash_profile`.

bash/.bash_profile

index d4a054e10a289491ecd12bcaa364940f2e30d824..c3a5c8124f54cbba3d2d42dee0d8296f29a90662 100644 (file)
@@ -7,6 +7,10 @@
 # Sources program-specific profiles from $XDG_CONFIG_HOME/profile.d and starts
 # Xorg. See bash(1) for more information about login shells.
 
+if [ -f ~/.profile ]; then
+    . ~/.profile
+fi
+
 _confdir=${XDG_CONFIG_HOME:-${HOME}/.config}
 
 if [ -d ${_confdir}/profile.d/ ]; then