mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-29 09:10:07 +00:00
Making variables local in jira plugin
This commit is contained in:
parent
1e99168627
commit
37f45eb621
1 changed files with 10 additions and 4 deletions
|
@ -19,6 +19,7 @@ open_jira_issue () {
|
||||||
open_cmd='xdg-open'
|
open_cmd='xdg-open'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local jira_url
|
||||||
if [ -f .jira-url ]; then
|
if [ -f .jira-url ]; then
|
||||||
jira_url=$(cat .jira-url)
|
jira_url=$(cat .jira-url)
|
||||||
elif [ -f ~/.jira-url ]; then
|
elif [ -f ~/.jira-url ]; then
|
||||||
|
@ -30,6 +31,7 @@ open_jira_issue () {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local jira_prefix
|
||||||
if [ -f .jira-prefix ]; then
|
if [ -f .jira-prefix ]; then
|
||||||
jira_prefix=$(cat .jira-prefix)
|
jira_prefix=$(cat .jira-prefix)
|
||||||
elif [ -f ~/.jira-prefix ]; then
|
elif [ -f ~/.jira-prefix ]; then
|
||||||
|
@ -76,7 +78,11 @@ jira_name () {
|
||||||
}
|
}
|
||||||
|
|
||||||
jira_query () {
|
jira_query () {
|
||||||
|
local jira_name
|
||||||
|
local verb
|
||||||
verb="$1"
|
verb="$1"
|
||||||
|
local lookup
|
||||||
|
local preposition
|
||||||
if [[ "${verb}" = "reported" ]]; then
|
if [[ "${verb}" = "reported" ]]; then
|
||||||
lookup=reporter
|
lookup=reporter
|
||||||
preposition=by
|
preposition=by
|
||||||
|
|
Loading…
Reference in a new issue