Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
6d5b1f1e
Commit
6d5b1f1e
authored
Nov 01, 2017
by
Jarryd Tilbrook
Committed by
Robby Russell
Nov 01, 2017
Browse files
Allow jira default action file based setting (#6367)
parent
1e027509
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/jira/jira.plugin.zsh
View file @
6d5b1f1e
...
@@ -2,13 +2,19 @@
...
@@ -2,13 +2,19 @@
#
#
# See README.md for details
# See README.md for details
:
${
JIRA_DEFAULT_ACTION
:
=new
}
function
jira
()
{
function
jira
()
{
emulate
-L
zsh
emulate
-L
zsh
local
action
=
${
1
:
=
$JIRA_DEFAULT_ACTION
}
local
action jira_url jira_prefix
if
[[
-f
.jira-default-action
]]
;
then
action
=
$(
cat
.jira-default-action
)
elif
[[
-f
~/.jira-default-action
]]
;
then
action
=
$(
cat
~/.jira-default-action
)
elif
[[
-n
"
${
JIRA_DEFAULT_ACTION
}
"
]]
;
then
action
=
${
JIRA_DEFAULT_ACTION
}
else
action
=
"new"
fi
local
jira_url jira_prefix
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment