Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active August 2, 2018 21:33
Show Gist options
  • Save YumaInaura/e1845c0ab8cfe1158cb3f2ad8fb2a130 to your computer and use it in GitHub Desktop.
Save YumaInaura/e1845c0ab8cfe1158cb3f2ad8fb2a130 to your computer and use it in GitHub Desktop.
Let's put a url file and make it easy to open with browser (Mac OS)

Let's put a url file and make it easy to open with browser (Mac OS)

Example

echo http://example.com/ > example.url
open -a "Google Chrome" $(cat example.url)

In above case you will see example.com web page in Google Chrome.


image

Use age

Forexample this method is useful when edit Gist files in local, commit, push, and see in web view.

https://gist.github.com/YumaInaura/e1845c0ab8cfe1158cb3f2ad8fb2a130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment