mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 2s
BREAKING CHANGE: `op` v1 support has been removed. Please migrate to v2 if you are affected by this change.
9 lines
226 B
Text
9 lines
226 B
Text
#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 "$@"
|