]> git.phdru.name Git - git-scripts.git/commitdiff
Add git-open - a script to open a remote's URL in a browser
authorOleg Broytman <phd@phdru.name>
Thu, 7 Jul 2016 15:29:17 +0000 (18:29 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 7 Jul 2016 15:29:17 +0000 (18:29 +0300)
git-open [new file with mode: 0755]

diff --git a/git-open b/git-open
new file mode 100755 (executable)
index 0000000..ab70471
--- /dev/null
+++ b/git-open
@@ -0,0 +1,2 @@
+#! /bin/sh
+exec webbrowser -n "`git config --get remote.$1.url`"