bash: use XDG variables if already defined

This commit is contained in:
Fernando Schauenburg 2020-12-26 01:15:05 +01:00
parent cd594f0c9f
commit 0f8a8570eb

View file

@ -7,9 +7,9 @@
# Customize environment # Customize environment
############################################################################## ##############################################################################
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
export EDITOR="vim" export EDITOR="vim"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"