summaryrefslogtreecommitdiffstats
path: root/zsh/oh-my-zsh/plugins/1password/_opswd
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
commita62114c91f2070c8c8453d117f3d81dc113e41ff (patch)
treef266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/1password/_opswd
parentaf120ab348f2e1a5a39dec035ed9dcf84189a64e (diff)
downloaddotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/1password/_opswd')
-rw-r--r--zsh/oh-my-zsh/plugins/1password/_opswd19
1 files changed, 0 insertions, 19 deletions
diff --git a/zsh/oh-my-zsh/plugins/1password/_opswd b/zsh/oh-my-zsh/plugins/1password/_opswd
deleted file mode 100644
index dbc094f..0000000
--- a/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 "$@"