You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
499 B
14 lines
499 B
#!/usr/bin/env zsh |
|
|
|
# Define XDG variables |
|
export XDG_DATA_HOME="${XDG_DATA_HOME:=$HOME/.local/share}" |
|
export XDG_STATE_HOME="${XDG_STATE_HOME:=$HOME/.local/state}" |
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:=$HOME/.config}" |
|
{{ if eq .chezmoi.os "darwin" -}} |
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:=$HOME/Library/Caches}" |
|
{{ else if eq .chezmoi.os "linux" -}} |
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:=$HOME/.cache}" |
|
{{ end }} |
|
|
|
# Define Zsh dotfiles dir |
|
ZDOTDIR=${XDG_CONFIG_HOME:=$HOME/.config}/zsh
|
|
|