Skip to content

Commit

Permalink
feat: Search for .phpctlrc in the home directory for global configura…
Browse files Browse the repository at this point in the history
…tions (#42)

Search for .phpctlrc in the home directory for global configurations.
  • Loading branch information
sneycampos authored Apr 2, 2024
1 parent b8f4546 commit 726f3ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/phpctl
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env bash
PHPCTL_DIR=$(dirname "$(realpath "$0")")/../

if [ -s "$HOME/.phpctlrc" ]; then
set -a
. "$HOME/.phpctlrc"
set +a
fi

if [ -s .phpctlrc ]; then
set -a
. .phpctlrc
Expand Down

0 comments on commit 726f3ac

Please sign in to comment.