initial commit
This commit is contained in:
9
plugins/1password/_opswd
Normal file
9
plugins/1password/_opswd
Normal file
@@ -0,0 +1,9 @@
|
||||
#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 "$@"
|
||||
Reference in New Issue
Block a user