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のプロパティを見てみると、~
を渡しているみたいでした。これを真似るとうまくいきました。
↓つまり、こんな感じ。
- シェル:
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
というのは、相当気合が入ったやつなんでしょうね。読む前からつらい気持ちになります…