From: Shane Jaroch Date: Tue, 23 Apr 2024 18:41:09 +0000 (-0400) Subject: better check for HOOK in .bashrc, rm prefs.json X-Git-Tag: v0.2.8.dev2~4 X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=8731251e45e7321f938b7e0f36dd2c9c20bb1e5d;p=nutratech%2Fcli.git better check for HOOK in .bashrc, rm prefs.json --- diff --git a/README.rst b/README.rst index 84d70e6..ce07634 100644 --- a/README.rst +++ b/README.rst @@ -100,7 +100,7 @@ Install with, HOOK='eval "$(direnv hook '$DEFAULT_SHELL')"' # Install the hook, if not already - grep "$HOOK" $SHELL_RC_FILE || echo "$HOOK" >>$SHELL_RC_FILE + grep ^"$HOOK"$ $SHELL_RC_FILE || echo "$HOOK" >>$SHELL_RC_FILE source $SHELL_RC_FILE This is what the ``.envrc`` file is for. It automatically activates ``venv``. diff --git a/tests/resources/prefs.json b/tests/resources/prefs.json deleted file mode 100644 index 27b8920..0000000 --- a/tests/resources/prefs.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "current_user": 1 -}