LoginSignup
5
2

More than 1 year has passed since last update.

WSL2上のVSCodeで.bash_profileや.bashrcが読み込まれない。。。(備忘録メモ)

Last updated at Posted at 2021-08-06

settings.jsonに以下を記載すると解決します。terminal.integrated.shell.linux.args-lを設定するという情報が結構ヒットしますがそれは古いバージョンのVSCodeでの話。

  "terminal.integrated.profiles.linux": {
    "bash": {
      "path": "bash",
      "icon": "terminal-bash",
      "args": ["-l"]
    },
    "zsh": {
      "path": "zsh"
    },
    "fish": {
      "path": "fish"
    },
    "tmux": {
      "path": "tmux",
      "icon": "terminal-tmux"
    },
    "pwsh": {
      "path": "pwsh",
      "icon": "terminal-powershell"
    }
  },
  "terminal.integrated.defaultProfile.linux": "bash",

Reference

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2