-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
open http://127.0.0.1:4000/ | ||
jekyll serve "$@" | ||
jekyll serve --open "$@" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
layout: post | ||
title: "git-url" | ||
date: 2019-03-08 | ||
tags: [cli] | ||
--- | ||
|
||
A while ago, [I created a shell script][gist] called `git-url`. It prints the remote origin URL of your current git-repository (or exit 1 if no git-repo is found). If the URL is in `git:` format, it is converted to `http:` format. | ||
|
||
Why would one write this? Because of <code>open `git-url`</code>. | ||
|
||
This will open the GitHub- or BitBucket-repository in your favorite browser. I use it all the time! | ||
|
||
Above works on macOS. Windows uses `start` instead of `open`, but I don't know how it works with Windows Subsystem for Linux. | ||
|
||
[gist]: https://gist.github.com/doekman/45acdb0ceedd9dc9dc6105d0b058b06a |
This file contains 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