diff options
author | Robby Russell <robby@planetargon.com> | 2015-08-12 21:14:27 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-08-12 21:14:27 -0700 |
commit | b8dbd9bfba261cde572a9cd196dc057719862a6d (patch) | |
tree | 34887e6b187a29887dde97f113bc0a681df17267 /plugins/node/node.plugin.zsh | |
parent | 4c1eda114d982ff5f7f7adc396f24c25d3f639d0 (diff) | |
parent | b760a10cb27e5e17ad32e51ffac3374334fa4888 (diff) | |
download | zsh-b8dbd9bfba261cde572a9cd196dc057719862a6d.tar.gz zsh-b8dbd9bfba261cde572a9cd196dc057719862a6d.tar.bz2 zsh-b8dbd9bfba261cde572a9cd196dc057719862a6d.zip |
Merge pull request #4217 from mcornella/standard-open-command
Implement and use a standard, cross-platform open command
Diffstat (limited to 'plugins/node/node.plugin.zsh')
-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" } |