I have added echo thisIsMyBash
at the end of my .bashrc
file. Now when I write create a new terminal with ctrl+alt+t
, thisIsMyBash is written a the beginning. This is as expected.
Now when I type /bin/bash
in my terminal thisIsMyBash is also displayed in my terminal.
But when I write /bin/bash -c "source ~/.bashrc"
in my terminal, nothing is written. Why?
Also when I actually write /bin/bash -c "source ~/.bashrc" && exec /bin/bash -li
thisIsMyBash also is displayed. Why that?
Any idea?