mirror of
https://github.com/lukasbestle/projectr.git
synced 2026-10-11 23:10:19 +02:00
Support for $XDG_CONFIG_HOME
This commit is contained in:
+4
-1
@@ -20,7 +20,10 @@ origin="$2"
|
||||
|
||||
# Load configuration
|
||||
CONFIG_DEFAULT_BRANCH="master"
|
||||
if [[ -f "$HOME/.project.cnf" ]]; then
|
||||
configPath=${XDG_CONFIG_HOME:-$HOME/.config}
|
||||
if [[ -f "$configPath/projectr/config.sh" ]]; then
|
||||
source "$configPath/projectr/config.sh"
|
||||
elif [[ -f "$HOME/.project.cnf" ]]; then
|
||||
source "$HOME/.project.cnf"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user