export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"

# editor and vim
[[ -n "$(command -v nvim)" ]] && {
  export EDITOR='nvim'
  export VISUAL='nvim'
} || {
  export EDITOR="vim"
  export VISUAL="vim"
}
