mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 17:28:01 +00:00
[Fix #635] Use $BROWSER to open node documentation
This commit is contained in:
parent
62198b0326
commit
c4b50ec1a0
@ -5,6 +5,11 @@
|
|||||||
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
# TODO: Make the sections easier to use.
|
if [[ -z "$BROWSER" ]]; then
|
||||||
open "http://nodejs.org/docs/$(node --version | sed 's/-.*//')/api/all.html#${1}"
|
print "$0: no web browser defined" >&2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# TODO: Make the sections easier to use.
|
||||||
|
"$BROWSER" "http://nodejs.org/docs/$(node --version | sed 's/-.*//')/api/all.html#${1}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user