Manage XDG directories
This commit is contained in:
parent
86f8470be0
commit
f4410b7a11
9
zshrc
9
zshrc
@ -263,9 +263,16 @@ precmd_functions=(store_last_return_value $precmd_functions)
|
||||
|
||||
zmodload zsh/complist
|
||||
|
||||
#----------------------------- XDG Base Directories ---------------------------
|
||||
|
||||
export XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
|
||||
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
|
||||
export XDG_STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
|
||||
export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache}
|
||||
|
||||
#---------------------------------- Plugins ------------------------------------
|
||||
|
||||
export ZPLUG_ROOT=${ZPLUG_ROOT:-$ZDOTDIR/zplug}
|
||||
export ZPLUG_ROOT=${ZPLUG_ROOT:-$XDG_DATA_HOME/zplug}
|
||||
export ZPLUG_VERSION=${ZPLUG_VERSION:-2.4.2}
|
||||
|
||||
if [[ ! -d "$ZPLUG_ROOT" ]]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user