add XDG_CONFIG_HOME

I tried installing it on my system and it failed mostly because the NvChad was by default installed to the `.config` directory. I use a custom dir for my `XDG_CONFIG_HOME` so I figured if anyone has the same issue this would be an easy way to have it not work for them, the fallback dir here is `.config` if the user has not set a custom one.
This commit is contained in:
Daniel M. Matongo 2021-07-28 19:16:32 +00:00 committed by GitHub
parent 9089232ec7
commit dcf5d64437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ _setup_terminal_shell() {
} }
_setup_arguments() { _setup_arguments() {
# default variables to be used # default variables to be used
_CONFIG_PATH="${HOME}/.config/nvim" _CONFIG_PATH="${XDG_CONFIG_HOME}/nvim"
_UPDATE="" _UPDATE=""
_BACKUP_PATH="${_CONFIG_PATH}.bak" _BACKUP_PATH="${_CONFIG_PATH}.bak"
_NO_BACKUP="false" _NO_BACKUP="false"