LoginSignup
0
1

More than 5 years have passed since last update.

指定したportでlocalhostを開くコマンド(Mac)

Last updated at Posted at 2017-10-23

設定

~/.bashrc などに下記を追加

function ol() {
    open http://localhost:$1
}

実行

ol 8080

とすると既定のブラウザで localhost:8080 が開く。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1