ConsoleZでBash on Windowsを使おうとしたけど(今は)無理だった話

いい感じのコンソールがほしいのでConsoleZを試してみた時のメモ。

設定してみる

とりあえず設定のConsoleを以下のように設定してみました(参考:メモ:Bash on Windowsのデータの場所は - Technically, technophobic.)。

  • シェル: C:\Windows\System32\bash.exe
  • 開始ディレクトリ: C:\Users\ユーザ名\AppData\Local\lxss\home\ユーザ名

しかし、開始ディレクトリがうまく渡らないらしく、/home/ユーザ名とかいろいろ変えてみたんですが、うまく/home/ユーザ名から開始してくれません。

Bash on Ubuntu on Windowsのプロパティを見てみると、~を渡しているみたいでした。これを真似るとうまくいきました。

f:id:yutannihilation:20160828102225p:plain:w450

↓つまり、こんな感じ。

  • シェル: C:\Windows\System32\bash.exe ~
  • 開始ディレクトリ: (空)

問題

なんですが、どうも矢印キーが動かないというバグがあるらしいです。

で、これを追っていくと、どうもBash on Windows側のバグとのことでした。

ちなみに↑のissueを挙げているのはConEmuの作者の方です。ConEmuはワークアラウンドである程度動くようになってるというコメントをされています。

I've created workaround in ConEmu build 160411. However, it would be nice to know, is it a bug or intended behavior.

Unfortunately, arrow keys still do not work in vim.

このissueは、マイクロソフトの中の人がつらそうなコメントを残してオープンなままになっています。直るのかな…

I have been discussing coming up with a series of blog posts about the good, the bad, and the ugly of the console system. I hope to get to doing that soon since it seems you and others would be interested.

ブログ記事1本ではなくseries of blog postsというのは、相当気合が入ったやつなんでしょうね。読む前からつらい気持ちになります…

まとめ

Bash on Ubuntu on Windows on ConsoleZをするのはもうちょい待ちましょう。