右クリックからmintty(bash)を開く

cygwinには、chereというコマンドが付いてくるようになったのだけど、こいつは、やっぱり、フォルダの背景で右クリックに対応していない。Android NDKの開発をしていると、minttyを開きたい度合いがMAXになってきたので、いつもの奴を改変して作ってみた。キモは、\"%V\"。

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Folder\shell\bash]
@="bash をここで開く"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CURRENT_USER\Software\Classes\Folder\shell\bash\command]
@="C:\\cygwin\\bin\\mintty.exe -e /bin/xhere /bin/bash.exe \"%V\""

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\bash]
@="bash をここで開く"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\bash\command]
@="C:\\cygwin\\bin\\mintty.exe -e /bin/xhere /bin/bash.exe \"%V\""

[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\Background\shell\bash]
@="bash をここで開く"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\Background\shell\bash\command]
@="C:\\cygwin\\bin\\mintty.exe -e /bin/xhere /bin/bash.exe \"%V\""

[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\Background\shell\bash]
@="bash をここで開く"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CURRENT_USER\Software\Classes\LibraryFolder\Background\shell\bash\command]
@="C:\\cygwin\\bin\\mintty.exe -e /bin/xhere /bin/bash.exe \"%V\""