summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-06 17:13:13 +0300
committerLars Wirzenius <liw@liw.fi>2023-10-06 17:13:13 +0300
commitc0247f55bf9153ae9237515d4e2a431b0e9107c0 (patch)
tree45992487b6c7a7ea5c0f5e016a4964b17238464e
parent7d97ebbf96bcdbfd2e195fc9aadbc465b859579f (diff)
downloadliw-dot-files-c0247f55bf9153ae9237515d4e2a431b0e9107c0.tar.gz
bashrc: don't import env from systemctl, if it won't work
Sponsored-by: author
-rw-r--r--bashrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index 9363dae..1e43e05 100644
--- a/bashrc
+++ b/bashrc
@@ -157,7 +157,9 @@ umask 002
# Get environment variables from systemd, if any are set.
-. <(systemctl --user show-environment | sed 's/^/export /')
+if systemctl --user show-environment > /dev/null 2>&1; then
+ . <(systemctl --user show-environment | sed 's/^/export /')
+fi
if command -v emacs >/dev/null; then
export EDITOR=emacs
@@ -209,3 +211,6 @@ if [ -e "$HOME/.cargo/env" ]
then
. "$HOME/.cargo/env"
fi
+
+# Added by Radicle.
+export PATH="$PATH:/home/liw/.radicle/bin"