Message ID | 20181023151554.10177-1-emil.l.velikov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | WIP: dim: introduce XDG_CONFIG_HOME support | expand |
diff --git a/dim b/dim index 21e1e0d6ed45..93e90a4f96d0 100755 --- a/dim +++ b/dim @@ -36,7 +36,8 @@ set -e # # dim configuration file -DIM_CONFIG=${DIM_CONFIG:-$HOME/.dimrc} +XDG_DIM_CONFIG=${XDG_CONFIG_HOME:+$XDG_CONFIG_HOME/dim/config} +DIM_CONFIG=${DIM_CONFIG:-${XDG_DIM_CONFIG:-$HOME/.dimrc}} if [ -r $DIM_CONFIG ]; then # shellcheck source=/dev/null . $DIM_CONFIG