mirror of
https://github.com/chenasraf/git-open.git
synced 2026-05-18 01:38:59 +00:00
14 lines
224 B
Bash
14 lines
224 B
Bash
#!/usr/bin/env zsh
|
|
|
|
open_url() {
|
|
echo "Opening $1"
|
|
is_mac=$(uname | grep -i darwin)
|
|
is_linux=$(uname | grep -i linux)
|
|
if [[ ! -z $is_mac ]]; then
|
|
open $1
|
|
elif [[ ! -z $is_linux ]]; then
|
|
xdg-open $1
|
|
fi
|
|
}
|
|
|