mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-11 18:09:50 +00:00
fix(1password)!: remove v1 support (#13507)
BREAKING CHANGE: `op` v1 support has been removed. Please migrate to v2 if you are affected by this change.
This commit is contained in:
@@ -6,14 +6,4 @@ function _opswd() {
|
||||
[[ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user