]> Nutra Git (v1) - nutratech/cli.git/commitdiff
better check for HOOK in .bashrc, rm prefs.json
authorShane Jaroch <chown_tee@proton.me>
Tue, 23 Apr 2024 18:41:09 +0000 (14:41 -0400)
committerShane Jaroch <chown_tee@proton.me>
Tue, 23 Apr 2024 18:41:20 +0000 (14:41 -0400)
README.rst
tests/resources/prefs.json [deleted file]

index 84d70e6b876074beeb995d12d1e566f516e0dd72..ce07634423ce7ffe989953c57dad376112515783 100644 (file)
@@ -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 (file)
index 27b8920..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-    "current_user": 1
-}