mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 18:31:59 +00:00
10 lines
233 B
Text
10 lines
233 B
Text
|
#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 "$@"
|