Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion hook-flow.sh
Original file line number Diff line number Diff line change
@@ -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;;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any way to DRY this up so the URL doesn't have to be repeated 4 times?

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