budlabs / mondo

A theme manager and generator written in bash
MIT License
36 stars 2 forks source link

XDG_CONFIG_HOME unset #14

Closed ibokuri closed 5 years ago

ibokuri commented 5 years ago

After a clean install, my $XDG_CONFIG_HOME is unset so the $MONDO_DIR variable gets set to /mondo which obviously messes things up a bit.

Apparently $XDG_CONFIG_HOME isn't set automatically? I thought it was... Maybe I did something wrong...

Anyways, maybe a check should be put in like XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}".

budRich commented 5 years ago

thanks for reporting. I will add defaults to that. I actually just recorded a video for my youtube channel about environment variables, where i use XDG_CONFIG_HOME, and in that video i jokingly say "If you want to be really really, thorough, set a default to this as well" :)

budRich commented 5 years ago

latest release #15 fixes this .