From c0247f55bf9153ae9237515d4e2a431b0e9107c0 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 6 Oct 2023 17:13:13 +0300 Subject: bashrc: don't import env from systemctl, if it won't work Sponsored-by: author --- bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1