ohmyzsh/plugins/1password/_opswd

10 lines
233 B
Plaintext
Raw Normal View History

#compdef opswd
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 "$@"