Merge pull request #36 from dotlambda/master

Source $XDG_CONFIG_HOME/cdm/cdmrc as third option
This commit is contained in:
Ghost1227 2016-09-02 15:14:58 -05:00 committed by GitHub
commit 719b4a5e91
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ existing one:
[RCFILE specified on command line]
$HOME/.cdmrc
$XDG_CONFIG_HOME/cdm/cdmrc
/etc/cdmrc
To autostart cdm when you log in your account, copy the content of

View File

@ -65,6 +65,8 @@ if [[ -n "$1" ]]; then
fi
elif [[ -f "$HOME/.cdmrc" ]]; then
source "$HOME/.cdmrc"
elif [[ -f "$XDG_CONFIG_HOME/cdm/cdmrc" ]]; then
source "$XDG_CONFIG_HOME/cdm/cdmrc"
elif [[ -f /etc/cdmrc ]]; then
source /etc/cdmrc
fi