From 5371affabde3309f3a5fed161f2376c0e3282315 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 6 Sep 2023 10:51:53 +0300 Subject: bashrc: env from systemd Sponsored-by: author --- bashrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bashrc') 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 -- cgit v1.2.1