LoginSignup
3
1

More than 3 years have passed since last update.

VSCodeのRemote WSLからIntegrated Terminalを起動すると.bashrcも.bash_profileも読まれない件

Posted at

TL;DR

表題の通りだったが、以下の2点を実施したら読まれるようになった。
1. SettingsTerminal > Integrated > Shell Args: Linux-lを追加し、ログインシェルとして起動するようにする
2. .bash_profileの先頭に以下を書き、.bashrcが読まれるようにする

if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

バージョン

OS

Windows 10 Pro 1809

(諸事情によりかなり古い)

WSL

多分1

WSL上のOS

Ubuntu 18.04.4 LTS

VSCode

1.44.2

3
1
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
3
1