0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macのPATHを更新しても、VSCode内のターミナルで更新したPATHが反映されない際の対処法

Posted at

環境

VSCode v1.87.2
macOS Sonoma 14.3.1

問題の原因

.zshrcファイル内にPATHを追加していないのが原因。

解決方法

VSCodeのターミナル呼び出し時は、.zshrcに記述されているPATHを読み込むのでそのファイルも更新すれば良い。
ターミナルを開き下記コマンドを入力。

vim /.zshrc

そうすると.zshrcファイルが開くので、vimの操作方法に従って下記をファイル一番下に追記する。

export PATH="$PATH:(追加したいPATH)"

:wqで保存を忘れずに!
あとはVSCode再起動で完了!!

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?