ee4a423da53c4f863b7e8cbe3d816e4d7b947078
- Author
- Andrew Janke <andrew@apjanke.net>
- Committer
- Andrew Janke <andrew@apjanke.net>
- Date
Message
Merge branch 'pr-4158' into jira-prefix-and-help-and-stuff
Diff
1diff --git a/plugins/jira/jira.plugin.zsh b/plugins/jira/jira.plugin.zsh
2index 0059249e28f4ef4241ffe49fc5ffd7ecc998c258..842dff5c76f7f2a7076557094f41887fef8df899 100644
3--- a/plugins/jira/jira.plugin.zsh
4+++ b/plugins/jira/jira.plugin.zsh
5@@ -19,7 +19,7 @@ open_jira_issue () {
6 elif [[ "${JIRA_URL}" != "" ]]; then
7 jira_url=${JIRA_URL}
8 else
9- echo "JIRA url is not specified anywhere."
10+ jira_url_help
11 return 1
12 fi
13
14@@ -55,6 +55,16 @@ open_jira_issue () {
15 fi
16 }
17
18+jira_url_help() {
19+ cat << EOF
20+JIRA url is not specified anywhere.
21+Valid options, in order of precedence:
22+ .jira-url file
23+ \$HOME/.jira-url file
24+ JIRA_URL environment variable
25+EOF
26+}
27+
28 jira_name () {
29 if [[ -z "$1" ]]; then
30 if [[ "${JIRA_NAME}" != "" ]]; then