You are not logged in.

#1 2025-01-06 14:56:32

weltio
Member
From: Germany
Registered: 2009-04-05
Posts: 90

[S]zsh version of "source /usr/share/bash-completion/completions/pass"

https://wiki.archlinux.org/title/Pass#M … ._teaming)

allows bash completion for different pass contexts

is there a way to achieve the same completion for zsh? If so, how?

Last edited by weltio (2025-01-31 10:41:42)

Offline

#2 2025-01-06 19:55:29

lmn
Member
Registered: 2021-05-09
Posts: 89
Website

Re: [S]zsh version of "source /usr/share/bash-completion/completions/pass"

According to the zsh completion for pass in /usr/share/zsh/site-functions/_pass

# If you use multiple repositories, you can configure completion like this:

compdef _pass workpass
zstyle ':completion::complete:workpass::' prefix "$HOME/work/pass"

workpass() {
   PASSWORD_STORE_DIR=$HOME/work/pass pass $@
 }

Offline

#3 2025-01-31 10:41:20

weltio
Member
From: Germany
Registered: 2009-04-05
Posts: 90

Re: [S]zsh version of "source /usr/share/bash-completion/completions/pass"

You, Sir (or Mam), are da real MVP
Thank you
I took the freedom to add that to the wiki article

Last edited by weltio (2025-01-31 10:49:12)

Offline

Board footer

Powered by FluxBB