diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-09-07 09:36:33 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-09-07 09:36:33 +0300 |
commit | 5bca51ab26fcf2c017ade0c530f5fc9c3ad6a2b5 (patch) | |
tree | daa226b7bf572ad163cb3b73f33e4852b08625cc /bashrc | |
parent | 86cc939bf78cf6cc6884579290e718dfdf770513 (diff) | |
download | liw-dot-files-5bca51ab26fcf2c017ade0c530f5fc9c3ad6a2b5.tar.gz |
fix(bashrc): overrride systemd env vars
Sponsored-by: author
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -153,6 +153,10 @@ prompt_command() { ulimit -c unlimited umask 002 + +# Get environment variables from systemd, if any are set. +. <(systemctl --user show-environment | sed 's/^/export /') + if command -v emacs >/dev/null; then export EDITOR=emacs else @@ -174,9 +178,6 @@ export PYTHONDONTWRITEBYTECODE=1 export STARSHIP_CONFIG=~/.config/starship/config.toml -# Get environment variables from systemd, if any are set. -. <(systemctl --user show-environment | sed 's/^/export /') - if [ -e "$HOME/tmp/cargo" ]; then export CARGO_TARGET_DIR="$HOME/tmp/cargo" elif [ -e "$HOME/cargo" ]; then |