LoginSignup
2
1

More than 1 year has passed since last update.

Mac VisualStudioCode ターミナル起動時のshellをbashに設定する方法 2021-09-08現在

Last updated at Posted at 2021-09-08

目的

  • VisualStudioCode(以降VScode)のターミナル起動時のshellをbashに設定する方法をまとめる

ご注意

  • 本方法だとVScodeの初回起動時のターミナルはzshのままかもしれない。
  • 本方法だと「VScodeを起動 → ターミナルを追加する」ときのみ新しいターミナルがbashで起動するようだ。
  • 初回起動時のターミナルをbashにする方法を模索中。

方法

  1. VScodeを起動する。
  2. 画面右上の「Code」 → 「基本設定」 → 「設定」をクリックする。

    スクリーンショット_2021-09-08_23_21_41.png

  3. 設定の検索部分に下記の内容を入力する。

    • Terminal › Integrated › Default Profile: Osx
  4. ヒットした設定、Terminal › Integrated › Default Profile: Osxのプルダウンをクリックして「Bash」を選択する。

  5. 即座に設定変更が反映されて、ターミナル起動時のshellが初期設定でbashになる。

設定してもなお、bashで起動しない時

  1. VScodeのsetting.jsonを開き、下記のどちらかの記載がすでにされていた場合、コメントアウトしてみる。
    • "terminal.integrated.shell.osx": "/bin/bash",
    • "terminal.integrated.automationShell.osx": "/bin/bash",
2
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
2
1