Add support for XDG_STATE_HOME
This commit is contained in:
parent
3348b8bd19
commit
2018821e9f
1 changed files with 2 additions and 1 deletions
3
zshenv
3
zshenv
|
@ -2,6 +2,7 @@
|
|||
: ${XDG_CACHE_HOME:=~/.cache}
|
||||
: ${XDG_CONFIG_HOME:=~/.config}
|
||||
: ${XDG_DATA_HOME:=~/.local/share}
|
||||
: ${XDG_STATE_HOME:=~/.local/state}
|
||||
|
||||
# For XDG_RUNTIME_DIR, pick a temporary directory - the spec actually
|
||||
# *requires* that it's destroyed when the user logs out, so that's handled by a
|
||||
|
@ -14,7 +15,7 @@ if ! [[ -d $XDG_RUNTIME_DIR ]]; then
|
|||
mkdir -p $XDG_RUNTIME_DIR
|
||||
chmod 0700 $XDG_RUNTIME_DIR
|
||||
fi
|
||||
export XDG_CONFIG_HOME XDG_CACHE_HOME XDG_DATA_HOME XDG_RUNTIME_DIR
|
||||
export XDG_CONFIG_HOME XDG_CACHE_HOME XDG_DATA_HOME XDG_STATE_HOME XDG_RUNTIME_DIR
|
||||
|
||||
# The real zsh config lives in XDG_CONFIG_HOME! ;)
|
||||
: ${ZDOTDIR:=$XDG_CONFIG_HOME/zsh}
|
||||
|
|
Loading…
Reference in a new issue