diff options
author | Andrew Janke <andrew@apjanke.net> | 2015-08-31 13:29:54 -0400 |
---|---|---|
committer | Andrew Janke <andrew@apjanke.net> | 2015-09-03 12:50:55 -0400 |
commit | 82c76f6b5c2718622a532fb759231e8d24171413 (patch) | |
tree | b0126f6d9b3ed508c1a6d9b21df56e2523e0555f /plugins/node | |
parent | fe92ea98e0633784508e85d6b756b1c3f667b2a4 (diff) | |
parent | ba5fd57c1ff4a8523715bab6acc35dbbeff88af7 (diff) | |
download | zsh-82c76f6b5c2718622a532fb759231e8d24171413.tar.gz zsh-82c76f6b5c2718622a532fb759231e8d24171413.tar.bz2 zsh-82c76f6b5c2718622a532fb759231e8d24171413.zip |
Merge changes from #4241 into installer-portable-colors
Conflicts:
tools/install.sh
tools/upgrade.sh
Diffstat (limited to 'plugins/node')
-rw-r--r-- | plugins/node/node.plugin.zsh | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/node/node.plugin.zsh b/plugins/node/node.plugin.zsh index 39d8b10d9..2463815ac 100644 --- a/plugins/node/node.plugin.zsh +++ b/plugins/node/node.plugin.zsh @@ -1,13 +1,5 @@ # Open the node api for your current version to the optional section. # TODO: Make the section part easier to use. function node-docs { - # get the open command - local open_cmd - if [[ "$OSTYPE" = darwin* ]]; then - open_cmd='open' - else - open_cmd='xdg-open' - fi - - $open_cmd "http://nodejs.org/docs/$(node --version)/api/all.html#all_$1" + open_command "http://nodejs.org/docs/$(node --version)/api/all.html#all_$1" } |