我在 Windows 10 机器上,我最近安装了 VS Code 来代替 Sublime Text 3。我将 VS Code 中的集成终端更改为默认为 git Bash。现在工作得很好,但我似乎丢失了文件和目录的颜色编码。我尝试添加eval "$(dircolors -b /etc/DIR_COLORS)"到我的 .bash_profile 但它仍然无法在集成终端中工作,但是如果我在外部打开 Bash,我的所有颜色仍然存在。
eval "$(dircolors -b /etc/DIR_COLORS)"
terminal visual-studio-code
terminal ×1
visual-studio-code ×1