LoginSignup
3
1

More than 5 years have passed since last update.

Cygwinを指定のフォルダーでエクスプローラーの右クリックで開き

Posted at

Windowsエクスプローラーでフォルダーを選択して、右クリックで「Open PowerShell Window Here」で開けば、便利なので、いろいろ調べて、以下のRegistry登録スクリプトを見つかりました。
日本語フォルダーも対応しています。

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin64_bash]
@="Cygwin Here(&B)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin64_bash\command]
@="C:\\cygwin64\\bin\\mintty.exe --dir \"%1\" -e /bin/xhere /bin/bash"

[HKEY_CLASSES_ROOT\Directory\shell\cygwin64_bash]
@="Cygwin Here(&B)"

[HKEY_CLASSES_ROOT\Directory\shell\cygwin64_bash\command]
@="C:\\cygwin64\\bin\\mintty.exe --dir \"%1\" -e /bin/xhere /bin/bash"

[HKEY_CLASSES_ROOT\Drive\shell\cygwin64_bash]
@="Cygwin Here(&B)"

[HKEY_CLASSES_ROOT\Drive\shell\cygwin64_bash\command]
@="C:\\cygwin64\\bin\\mintty.exe --dir \"%1\" -e /bin/xhere /bin/bash"
3
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
3
1