summaryrefslogtreecommitdiff
path: root/plugins/frontend-search
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-08-12 21:14:27 -0700
committerRobby Russell <robby@planetargon.com>2015-08-12 21:14:27 -0700
commitb8dbd9bfba261cde572a9cd196dc057719862a6d (patch)
tree34887e6b187a29887dde97f113bc0a681df17267 /plugins/frontend-search
parent4c1eda114d982ff5f7f7adc396f24c25d3f639d0 (diff)
parentb760a10cb27e5e17ad32e51ffac3374334fa4888 (diff)
downloadzsh-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/frontend-search')
-rw-r--r--plugins/frontend-search/frontend-search.plugin.zsh10
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/frontend-search/frontend-search.plugin.zsh b/plugins/frontend-search/frontend-search.plugin.zsh
index b9fb8634c..f7485621b 100644
--- a/plugins/frontend-search/frontend-search.plugin.zsh
+++ b/plugins/frontend-search/frontend-search.plugin.zsh
@@ -2,14 +2,6 @@
function frontend() {
- # get the open command
- local open_cmd
- if [[ $(uname -s) == 'Darwin' ]]; then
- open_cmd='open'
- else
- open_cmd='xdg-open'
- fi
-
# no keyword provided, simply show how call methods
if [[ $# -le 1 ]]; then
echo "Please provide a search-content and a search-term for app.\nEx:\nfrontend <search-content> <search-term>\n"
@@ -113,7 +105,7 @@ function frontend() {
echo "$url"
- $open_cmd "$url"
+ open_command "$url"
}