summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 5ffe1b8..172c648 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -70,7 +70,9 @@ function clear_line {
}
# Read local configuration
-if [[ -r $HOME/.pkg.conf ]] {
+if [[ -r ${XDG_CONFIG_HOME-$HOME/.config/pkg/pkg.conf} ]] {
+ source ${XDG_CONFIG_HOME-$HOME/.config/pkg/pkg.conf}
+} elif [[ -r $HOME/.pkg.conf ]] {
source $HOME/.pkg.conf
}