Merge pull request #36 from dotlambda/master
Source $XDG_CONFIG_HOME/cdm/cdmrc as third option
This commit is contained in:
commit
719b4a5e91
@ -14,6 +14,7 @@ existing one:
|
|||||||
|
|
||||||
[RCFILE specified on command line]
|
[RCFILE specified on command line]
|
||||||
$HOME/.cdmrc
|
$HOME/.cdmrc
|
||||||
|
$XDG_CONFIG_HOME/cdm/cdmrc
|
||||||
/etc/cdmrc
|
/etc/cdmrc
|
||||||
|
|
||||||
To autostart cdm when you log in your account, copy the content of
|
To autostart cdm when you log in your account, copy the content of
|
||||||
|
2
src/cdm
2
src/cdm
@ -65,6 +65,8 @@ if [[ -n "$1" ]]; then
|
|||||||
fi
|
fi
|
||||||
elif [[ -f "$HOME/.cdmrc" ]]; then
|
elif [[ -f "$HOME/.cdmrc" ]]; then
|
||||||
source "$HOME/.cdmrc"
|
source "$HOME/.cdmrc"
|
||||||
|
elif [[ -f "$XDG_CONFIG_HOME/cdm/cdmrc" ]]; then
|
||||||
|
source "$XDG_CONFIG_HOME/cdm/cdmrc"
|
||||||
elif [[ -f /etc/cdmrc ]]; then
|
elif [[ -f /etc/cdmrc ]]; then
|
||||||
source /etc/cdmrc
|
source /etc/cdmrc
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user