From 3a8782c56e47a030d0a5fa893deaf3f5325b6c48 Mon Sep 17 00:00:00 2001 From: "Martin A. Jackson" Date: Wed, 20 Mar 2019 12:50:30 -0700 Subject: [PATCH] add Linus support (past OSX support) open command on Linux attempt to open a new terminal. OSX uses open, Linux uses xdg-open. --- hook-flow.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hook-flow.sh b/hook-flow.sh index 22ec0f3..532aca6 100755 --- a/hook-flow.sh +++ b/hook-flow.sh @@ -1,4 +1,13 @@ #!/bin/bash # hook-flow -open https://github.com/donavon/hook-flow +# open https://github.com/donavon/hook-flow + +unameOut="$(uname -s)" +case "${unameOut}" in + Linux*) xdg-open https://github.com/donavon/hook-flow;; + Darwin*) open https://github.com/donavon/hook-flow;; + CYGWIN*) xdg-open https://github.com/donavon/hook-flow;; + MINGW*) xdg-open https://github.com/donavon/hook-flow;; + *) echo "machine UNKNOWN" +esac