From 7ba2ab61d8a75bc2ca29e28ef9906190480673f6 Mon Sep 17 00:00:00 2001 From: Jonathan Price Date: Fri, 18 Jul 2014 13:23:07 +0100 Subject: [PATCH] Make Jira plugin work under cygwin. * Cygwin does not have the xdg-open command, this change uses cygstart which is capable of opening urls. --- plugins/jira/jira.plugin.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh index 3d510e430..933736ac0 100644 --- a/plugins/jira/jira.plugin.zsh +++ b/plugins/jira/jira.plugin.zsh @@ -14,6 +14,8 @@ open_jira_issue () { local open_cmd if [[ $(uname -s) == 'Darwin' ]]; then open_cmd='open' + elif [[ $(uname -o) == 'Cygwin' ]]; then + open_cmd='cygstart' else open_cmd='xdg-open' fi