From 7fd8deb587ab29f33bba87479bb9b1bed3f0256c Mon Sep 17 00:00:00 2001 From: John D Pell Date: Tue, 8 Feb 2022 14:03:32 -0800 Subject: [PATCH] docs/installation: add to note about interactive/login shells --- docs/installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 6b5a19fde7..068f2da572 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -34,7 +34,7 @@ To achieve this, you can add this snippet in your ``.bash_profile``\ : .. code-block:: - if [[ -f ~/.bashrc ]]; then + if [[ $- == *"i"* && -f ~/.bashrc ]]; then source ~/.bashrc fi