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?

More than 3 years have passed since last update.

【Windows Terminal】新規タブを開くときにカレントディレクトリを引き継ぐ

Last updated at Posted at 2022-04-27

環境

  • Microsoft Windows 10.0.22000.613(21H2)
  • Windows Terminal 1.12.10983.0

現象

コンテキストメニューから Windows Terminal を開くとカレントディレクトリで開かれるが、その横に新しいタブを開くと、カレントディレクトリが継承されず C:\Users\username で開かれる。

原因

開始ディレクトリの設定が %USERPROFILE% になっている。

設定方法

settings.json を編集する場合

"startingDirectory"null を設定する。

Ctrl+, で設定を開く。対象のシェルの設定を開いて「開始ディレクトリ」で「親プロセス ディレクトリの使用」にチェックを入れて保存する。
image.png

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?