explorerで右クリックしたフォルダをcygwinで開く
Command Prompt Hereが便利だったので、cygwinでも出来ないか探してみた。
以下の内容を拡張子を.regにしてファイルに保存。
REGEDIT4 [HKEY_CLASSES_ROOT\Directory\shell\BashHere] @="&Bash This" [HKEY_CLASSES_ROOT\Directory\shell\BashHere\command] @="c:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\"" [HKEY_CLASSES_ROOT\Drive\shell\BashHere] @="&Bash This" [HKEY_CLASSES_ROOT\Drive\shell\BashHere\command] @="c:\\cygwin\\bin\\bash.exe --login -c \"cd '%1' ; exec /bin/bash -rcfile ~/.bashrc\"" [HKEY_CLASSES_ROOT\Directory\shell\rxvt] @="rxv&t Here" [HKEY_CLASSES_ROOT\Directory\shell\rxvt\command] @="C:\\cygwin\\bin\\rxvt.exe -bg black -fg white -sr -sl 1000 -fn \"Fixedsys\" -ls -e /usr/bin/bash --login -c \"cd '%1'; exec /bin/bash -rcfile ~/.bashrc\""
クリックして実行。
コンテキストメニューに「Bash This」が現れる。