LoginSignup
8
7

More than 3 years have passed since last update.

Windows Terminal (Preview版)を起動する右クリックメニューを作る

Last updated at Posted at 2019-05-13

この記事は,過去に書いたエクスプローラで開いているフォルダをVSCodeで開く右クリックメニューを作る
の流用です

Windows Terminalの正式リリースで普通に実装されそうな機能なので(issueまだ追えてないです),今導入してもあまり意味はないかもしれません

動作環境

  • Windows 10 Home: バージョン-1903 OSビルド-18362.86 (Insider Preview)
  • Windows Terminal (Preview版)

手順

  1. レジストリエディタ(regedit.exe)を起動
  2. HKEY_CLASSES_ROOT\Directory\Background\shell 下にキー作成(WindowsTerminal)
  3. キーの値を右クリック時に表示する名前に(今回はOpen Windows Terminal here)
  4. 作成したキーの直下に名称commandでキーを作成
  5. キーの値を"C:\Users<UserName>\AppData\Local\Microsoft\WindowsApps\wt.exe"に設定 (は適宜自分のユーザー名に置き換える) wt.exeがWindows Terminalの起動エイリアスです
  6. 完成

image.png

image.png

image.png

結果

image.png

問題点

  • 何故か%LOCALAPPDATA%を使うとエラーが起きて起動できなかった(パスの展開はできたっぽいので権限周りで弾かれてる?)
  • Windows Terminalのprofiles.jsonstartingDirectoryにパスを設定しているとそちらが優先されるので注意
  • おとなしく正式リリース待ってれば良い気もする
8
7
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
8
7