Skip to content

Commit 8731251

Browse files
committed
better check for HOOK in .bashrc, rm prefs.json
1 parent 448ca88 commit 8731251

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Install with,
100100
HOOK='eval "$(direnv hook '$DEFAULT_SHELL')"'
101101
102102
# Install the hook, if not already
103-
grep "$HOOK" $SHELL_RC_FILE || echo "$HOOK" >>$SHELL_RC_FILE
103+
grep ^"$HOOK"$ $SHELL_RC_FILE || echo "$HOOK" >>$SHELL_RC_FILE
104104
source $SHELL_RC_FILE
105105
106106
This is what the ``.envrc`` file is for. It automatically activates ``venv``.

tests/resources/prefs.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)