mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 08:59:51 +00:00
BREAKING CHANGE: `op` v1 support has been removed. Please migrate to v2 if you are affected by this change.
10 lines
226 B
Plaintext
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 "$@"
|