summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-09-06 10:53:03 +0300
committerLars Wirzenius <liw@liw.fi>2023-09-06 10:53:03 +0300
commitb7cd5666fe465429055a23c52273a52e41f9456d (patch)
treea5b5b4f83cd99f1d2339a535642e236a88ddd1a6 /bashrc
parent5371affabde3309f3a5fed161f2376c0e3282315 (diff)
downloadliw-dot-files-b7cd5666fe465429055a23c52273a52e41f9456d.tar.gz
bashrc: export systemd env vars
Sponsored-by: author
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 073079f..55a4976 100644
--- a/bashrc
+++ b/bashrc
@@ -174,7 +174,7 @@ export PYTHONDONTWRITEBYTECODE=1
export STARSHIP_CONFIG=~/.config/starship/config.toml
# Get environment variables from systemd, if any are set.
-. <(systemctl --user show-environment)
+. <(systemctl --user show-environment | sed 's/^/export /')
if [ -e "$HOME/tmp/cargo" ]; then
export CARGO_TARGET_DIR="$HOME/tmp/cargo"