본문 바로가기
Dev/삽질 방지

Visual Studio Code에서 Integrated Terminal 사용 시 .bash_profile을 읽어오지 않을 경우

by ryush00 2019. 5. 4.

필자의 경우 WSL 사용중 rbenv 명령어가 먹지 않아, 구글링해 찾아보니 WSC는 기본적으로 .bash_profile을 읽어들이지 않는다는 사실을 찾아냈습니다.

CTRL + SHIFT + P를 눌러 Command Palatte에서 Preferences: Open Settings (JSON)을 눌러 설정을 연 후, 아래 코드를 추가해주면 됩니다.

"terminal.integrated.shellArgs.linux": ["-l"]

참고 자료

https://code.visualstudio.com/docs/editor/integrated-terminal#_linux-os-x

 

 

댓글