From 1db2853bca672da544d5d2883d2e9cab80db2263 Mon Sep 17 00:00:00 2001 From: ptaylor Date: Mon, 10 Jul 2023 13:07:22 -0700 Subject: [PATCH] fix bashrc --- features/src/utils/.bashrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/src/utils/.bashrc b/features/src/utils/.bashrc index 7c7d39df..f81729b7 100644 --- a/features/src/utils/.bashrc +++ b/features/src/utils/.bashrc @@ -10,21 +10,21 @@ if test -n "${PROMPT_COMMAND##*"history -a"*}"; then fi # Define XDG_CACHE_HOME -if test -n "${XDG_CACHE_HOME:-}"; then +if test -z "${XDG_CACHE_HOME:-}"; then export XDG_CACHE_HOME="${HOME}/.cache"; fi # Define XDG_STATE_HOME -if test -n "${XDG_STATE_HOME:-}"; then +if test -z "${XDG_STATE_HOME:-}"; then export XDG_STATE_HOME="${HOME}/.local/state"; fi # Default python history to ~/.local/state/.python_history -if test -n "${PYTHONHISTFILE:-}"; then +if test -z "${PYTHONHISTFILE:-}"; then export PYTHONHISTFILE="${XDG_STATE_HOME}/.python_history"; fi # Default python startup file to `devcontainer-utils-python-repl-startup` script. -if test -n "${PYTHONSTARTUP:-}"; then +if test -z "${PYTHONSTARTUP:-}"; then export PYTHONSTARTUP="$(which devcontainer-utils-python-repl-startup)"; fi