Permalink
Browse files

Merge pull request #36 from dotlambda/master

Source $XDG_CONFIG_HOME/cdm/cdmrc as third option
  • Loading branch information...
2 parents 7b6c395 + 808bb32 commit 719b4a5e919c355061d3c947ee7b3957bf9143f4 @ghost1227 committed on GitHub Sep 2, 2016
Showing with 3 additions and 0 deletions.
  1. +1 −0 README.md
  2. +2 −0 src/cdm
View
@@ -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
@@ -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

0 comments on commit 719b4a5

Please sign in to comment.