Skip to content

Commit 726f3ac

Browse files
authored
feat: Search for .phpctlrc in the home directory for global configurations (#42)
Search for .phpctlrc in the home directory for global configurations.
1 parent b8f4546 commit 726f3ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/phpctl

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/usr/bin/env bash
22
PHPCTL_DIR=$(dirname "$(realpath "$0")")/../
3+
4+
if [ -s "$HOME/.phpctlrc" ]; then
5+
set -a
6+
. "$HOME/.phpctlrc"
7+
set +a
8+
fi
9+
310
if [ -s .phpctlrc ]; then
411
set -a
512
. .phpctlrc

0 commit comments

Comments
 (0)