【发布时间】:2019-01-20 02:25:05
【问题描述】:
我有以下文件来处理 shell 配置:
#~/.bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
和
#~/.bashrc
... configure shell
如果我使用 code 从命令行打开 VSCode,则每当我添加集成 shell 的新实例时都会加载我的 .bashrc。
但是,如果我通过其图标打开 VSCode,则只会加载我的 .profile。
如何确保我的 .bashrc 被加载?
我尝试了terminal.integrated.shellArgs.osx 设置的各种设置,但没有任何运气。
【问题讨论】:
-
我在加载 bash_profile 而不是 bashrc 时遇到问题。删除 bash_profile 文件修复了它。
标签: bash shell visual-studio-code settings