Skip to content

Commit

Permalink
fix: don't detect prj root based on .config if pwd is home
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jun 20, 2023
1 parent 3ea5e75 commit 44d2b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/direnv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
find_prj_config() (
local old_pwd
while [[ $old_pwd != $PWD ]]; do
if [[ -d .config ]]; then
if [[ -d .config && "$HOME" != "$PWD" ]]; then
echo "$PWD"
return 0
fi
Expand Down

0 comments on commit 44d2b5f

Please sign in to comment.