bash: use XDG variables if already defined
This commit is contained in:
parent
cd594f0c9f
commit
0f8a8570eb
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue