X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;ds=sidebyside;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2F1password%2F_opswd;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2F1password%2F_opswd;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=dbc094f87ec3a62959baf5ab77dfc10977e7dfa1;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/1password/_opswd b/stow/oh-my-zsh/.oh-my-zsh/plugins/1password/_opswd deleted file mode 100644 index dbc094f..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/1password/_opswd +++ /dev/null @@ -1,19 +0,0 @@ -#compdef opswd - -function _opswd() { - local -a services - services=("${(@f)$(op item list --categories Login --cache 2>/dev/null | awk 'NR != 1 { print $2 }')}") - [[ -z "$services" ]] || compadd -a -- services -} - -# TODO: 2022-03-26: Remove support for op CLI 1 -autoload -Uz is-at-least -is-at-least 2.0.0 $(op --version) || { - function _opswd() { - local -a services - services=("${(@f)$(op list items --categories Login 2>/dev/null | op get item - --fields title 2>/dev/null)}") - [[ -z "$services" ]] || compadd -a -- services - } -} - -_opswd "$@"