e-tipsmemo

ごった煮

Bash on Windowsをイイカンジにする

右クリックでBash起動
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
@="C:\\Windows\\System32\\bash.exe"


少し前のアップデートによって、Bash On Windowsから
Windowsのアプリケーション(.exe)が起動できるようになった。
ので

Bashからexplorerでその場を開く。

.bashrcや.zshrcなどに

alias explorer="explorer.exe \".\""
適当なアプリで開く
alias hoge="cmd.exe /c \"start $1\""

Bashからデフォルトのアプリで開く。
Macのopenコマンドのようなもの。
(Linuxには別の目的のopenコマンドがすでにある。
何かよいエイリアス名にしたい。)