I have the following files to handle shell configuration:
#~/.bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
and
#~/.bashrc
... configure shell
If I open VSCode from the command line using code
, my .bashrc
is loaded whenever I add a new instance of the integrated shell.
However if I open VSCode via its icon, only my .profile
is loaded.
How can I ensure my .bashrc
is loaded instead?
I've tried various settings for the terminal.integrated.shellArgs.osx
setting without any luck.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…