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