問題 Win7のエクスプローラ(explorer)にbashを起動するコンテキストメニュー(context menu)を設定したかったのですが・・・ 経緯 PowerShellにはフリーの設定ツールがあまた在るので、bash用をと探してたのですがなかなか見つからぬまま、 レジストリに登録すればOKであることが解り、探り探り試しているうちに、 起動ディレクトリがホームに固定されてしまうという新たな問題に阻まれ、 「c:/cygwin/etc/profile」を覗いたところ、次の記述を見つけて、何だろう「chere」って・・・ # Make sure we start in home unless invoked by CHERE if [ ! -z "${CHERE_INVOKING}" ]; then unset CHERE_INVOKING else cd "${HOME}" fi 対処
![cygwin+chere - eggtoothcrocの日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/ee184712842f8c25a9ad26e3eefae67e08ba4eb7/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fe%2Feggtoothcroc%2F20100830%2F20100830235031.png)