LoginSignup
0
1

More than 3 years have passed since last update.

エクスプローラで表示中の場所でWindows Terminalを起動するTips

Last updated at Posted at 2020-08-05

概要

エクスプローラのアドレスバーにcmdpowershellと入力すると、エクスプローラで表示中の場所をカレントディレクトリとしてシェルが起動します。

Windows Terminalでもwtと入力することで起動できますが、カレントディレクトリをC:\\Users\Usernameとして起動してしまいます(2020年8月現在)。

エクスプローラで表示中の場所をカレントディレクトリとして起動するには、設定を変更する必要があります。

方法

  1. 設定をクリックします
    Windows PowerShell 2020_08_05 16_12_42.png

  2. エディタが起動するので、profiles > defaults以下に"startingDirectory": "."と追記します。

(前略)
"profiles":
{
  "defaults": {
    // Put settings here that you want to apply to all profiles.
    "startingDirectory":  "."
  },
(後略)
  1. 一旦Windows Terminalを閉じて、エクスプローラのアドレスバーにwtと入力し、表示中のディレクトリをカレントディレクトリとしてWindows Terminalが表示されることを確認します。

参考リンク

Windows Terminal: Open terminal in current folder via single command · Issue #620 · microsoft/terminal

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