1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-02-13 05:59:46 +08:00

Compare commits

..

No commits in common. "54779e5250f362ebd1cf6a7094657f2c894958c3" and "8cbe98469d9862d37d43ca4229dc8e915ec377a9" have entirely different histories.

3 changed files with 2 additions and 3136 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,10 +37,8 @@ if (( ! $+commands[docker] )); then
fi fi
{ {
# docker version returns `Docker version 24.0.2, build cb74dfcd85`
# with `s:,:` remove the comma after the version, and select third word of it
local _docker_version=${${(s:,:z)"$(command docker --version)"}[3]}
# `docker completion` is only available from 23.0.0 on # `docker completion` is only available from 23.0.0 on
local _docker_version=$(command docker version --format '{{.Client.Version}}' 2>/dev/null)
if is-at-least 23.0.0 $_docker_version; then if is-at-least 23.0.0 $_docker_version; then
# If the completion file doesn't exist yet, we need to autoload it and # If the completion file doesn't exist yet, we need to autoload it and
# bind it to `docker`. Otherwise, compinit will have already done that. # bind it to `docker`. Otherwise, compinit will have already done that.

View File

@ -80,13 +80,7 @@ function jira() {
issue_arg=${issue_arg##*/} issue_arg=${issue_arg##*/}
# Strip suffixes starting with _ # Strip suffixes starting with _
issue_arg=(${(s:_:)issue_arg}) issue_arg=(${(s:_:)issue_arg})
# If there is only one part, it means that there is a different delimiter. Try with -
if [[ ${#issue_arg[@]} = 1 && ${issue_arg} == *-* ]]; then
issue_arg=(${(s:-:)issue_arg})
issue_arg="${issue_arg[1]}-${issue_arg[2]}"
else
issue_arg=${issue_arg[1]} issue_arg=${issue_arg[1]}
fi
if [[ "${issue_arg:l}" = ${jira_prefix:l}* ]]; then if [[ "${issue_arg:l}" = ${jira_prefix:l}* ]]; then
issue="${issue_arg}" issue="${issue_arg}"
else else