1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

jira plugin: take into account action argument (fix #6388) (#6393)

This commit is contained in:
ramanduh 2017-11-04 18:31:42 +01:00 committed by Robby Russell
parent 4cb730773b
commit 93120c4151

View file

@ -5,7 +5,9 @@
function jira() {
emulate -L zsh
local action jira_url jira_prefix
if [[ -f .jira-default-action ]]; then
if [[ -n "$1" ]]; then
action=$1
elif [[ -f .jira-default-action ]]; then
action=$(cat .jira-default-action)
elif [[ -f ~/.jira-default-action ]]; then
action=$(cat ~/.jira-default-action)