Files
ohmyzsh/plugins/1password/_opswd
Carlo Sala 871d4b9816 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.
2026-01-08 12:02:40 +01:00

10 lines
226 B
Plaintext

#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
}
_opswd "$@"