Bash on Ubuntu on Windowsで簡単にフォルダを開くためのショートカットスクリプト
を書きました。
macのopen
コマンドのように、ターミナルから今いる場所や引数で指定したファイルをエクスプローラで開くことができます。
※Windowsの管理しているフォルダにいるときのみ
※そうでないときは %USERPROFILE%
が開く
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
DIR=. | |
else | |
DIR=$* | |
fi | |
explorer.exe $DIR |