summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-09-06 10:51:53 +0300
committerLars Wirzenius <liw@liw.fi>2023-09-06 10:51:53 +0300
commit5371affabde3309f3a5fed161f2376c0e3282315 (patch)
treea2609047e415856fc58c345ba2e69f25d86c408f /bashrc
parente60f262317d6789ca59fde62448ef527215a4391 (diff)
downloadliw-dot-files-5371affabde3309f3a5fed161f2376c0e3282315.tar.gz
bashrc: env from systemd
Sponsored-by: author
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashrc b/bashrc
index 638466e..073079f 100644
--- a/bashrc
+++ b/bashrc
@@ -173,6 +173,9 @@ export ANSIBLE_STDOUT_CALLBACK=yaml
export PYTHONDONTWRITEBYTECODE=1
export STARSHIP_CONFIG=~/.config/starship/config.toml
+# Get environment variables from systemd, if any are set.
+. <(systemctl --user show-environment)
+
if [ -e "$HOME/tmp/cargo" ]; then
export CARGO_TARGET_DIR="$HOME/tmp/cargo"
elif [ -e "$HOME/cargo" ]; then