summaryrefslogtreecommitdiff
path: root/plugins/frontend-search/frontend-search.plugin.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-08-05 00:32:57 +0200
committerMarc Cornellà <marc.cornella@live.com>2015-08-05 00:57:40 +0200
commitd1d06b5675bebbe54f3d876eb993b6e89d8963c7 (patch)
tree198d6691cc238fbc61a527a2169b4acbd561d39f /plugins/frontend-search/frontend-search.plugin.zsh
parent2d0bfcf81846ea4cb0fe2a42f3dac7f2c60e77b7 (diff)
downloadzsh-d1d06b5675bebbe54f3d876eb993b6e89d8963c7.tar.gz
zsh-d1d06b5675bebbe54f3d876eb993b6e89d8963c7.tar.bz2
zsh-d1d06b5675bebbe54f3d876eb993b6e89d8963c7.zip
Use standard open command in current plugins
Substitutes the current duplicate logic for the standard and cross-platform function open_command in plugins: frontend-search, jira, node, web-search
Diffstat (limited to 'plugins/frontend-search/frontend-search.plugin.zsh')
-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"
}