App-git-hub
view release on metacpan or search on metacpan
share/lib/git-hub.d/git-hub-open view on Meta::CPAN
#!/usr/bin/env bash
# Try this vim command:
#
# map \gho :let $l=line(".")<cr>:let $p=@%<cr>:!git hub open $p $l<cr><cr>
set -e
command:open() {
local options=()
"$raw_output" && options+=(--raw)
[ -n "$remote_name" ] && options+=(--remote "$remote_name")
set -- "${command_arguments[@]}"
url="$(git hub url $@ ${options[@]})"
get-browser
"$browser" "$url" &
msg_ok="$browser $url"
}
get-browser() {
if read-config-value browser; then
browser="$value"
return
fi
if [ "$(uname)" == "Darwin" ]; then
browser="open"
return
fi
for browser in firefox chromium-browser; do
[ -n "$(type $browser)" ] && return
done
die <<...
Can't determine your web browser. Try something like:
git hub config browser chromium
...
}
# vim: set lisp:
( run in 1.282 second using v1.01-cache-2.11-cpan-5837b0d9d2c )