summaryrefslogtreecommitdiff
path: root/plugins/jira
diff options
context:
space:
mode:
authorAndrew Janke <andrew@apjanke.net>2015-08-18 04:12:35 -0400
committerAndrew Janke <andrew@apjanke.net>2015-08-18 04:12:35 -0400
commitee4a423da53c4f863b7e8cbe3d816e4d7b947078 (patch)
treed4e08d970e6b99751a9648fad4954e43803c1ffb /plugins/jira
parentcaf667fb309eda77a6ecec44ce1f8a21280b6fb7 (diff)
parent96e5346efb4082c20c6d5cc4cd5512208a14202f (diff)
downloadzsh-ee4a423da53c4f863b7e8cbe3d816e4d7b947078.tar.gz
zsh-ee4a423da53c4f863b7e8cbe3d816e4d7b947078.tar.bz2
zsh-ee4a423da53c4f863b7e8cbe3d816e4d7b947078.zip
Merge branch 'pr-4158' into jira-prefix-and-help-and-stuff
Diffstat (limited to 'plugins/jira')
-rw-r--r--plugins/jira/jira.plugin.zsh12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh
index 0059249e2..842dff5c7 100644
--- a/plugins/jira/jira.plugin.zsh
+++ b/plugins/jira/jira.plugin.zsh
@@ -19,7 +19,7 @@ open_jira_issue () {
elif [[ "${JIRA_URL}" != "" ]]; then
jira_url=${JIRA_URL}
else
- echo "JIRA url is not specified anywhere."
+ jira_url_help
return 1
fi
@@ -55,6 +55,16 @@ open_jira_issue () {
fi
}
+jira_url_help() {
+ cat << EOF
+JIRA url is not specified anywhere.
+Valid options, in order of precedence:
+ .jira-url file
+ \$HOME/.jira-url file
+ JIRA_URL environment variable
+EOF
+}
+
jira_name () {
if [[ -z "$1" ]]; then
if [[ "${JIRA_NAME}" != "" ]]; then