Bash Completion on Mac
Jamie Couture
jamie.couture at gmail.com
Sun Apr 10 13:01:54 UTC 2022
Hi Brian,
Depending on your preferences, you have a couple options to install
pass. Jens provided a MacPorts option. I'll expand on that to
provide some other options for you:
Assuming you install through homebrew, you can update FPATH and make
sure compinit is loaded; try the following to your .zshrc:
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
command -v compinit &>/dev/null || autoload -U compinit && compinit
If you manually installed pass, you'll update $FPATH similarly, but
point it to your repo's path or copy it manually somewhere in onf of
the usual FPATH directories.
Make sure compinit is called, then you should be fine.
If you use oh-my-zsh, you can specify the pass plugin; however,
without all that overhead the above should get you on the right track.
Regards,
Jamie
On Sat, Apr 9, 2022 at 7:09 AM Brian Abbott <burnedfaceless at gmail.com> wrote:
>
> Hi,
> I have been using pass on Linux and I was issued a Mac for work. This
> computer came installed with Mac 12.3 Monterey. Zshell was the default
> shell.
>
> So I set bash as the default shell. I believe I was missing a .bashrc
> and a bash_profile. So I created those.
>
> I installed pass through homebrew. Bash completion did not work with pass.
>
> I found this post through Google
> https://lists.zx2c4.com/pipermail/password-store/2014-December/001241.html
>
> I followed the instructions here to install bash completion:
> https://sourabhbajaj.com/mac-setup/BashCompletion/.
>
> Bash completion seems to work but not on pass.
>
> If someone could help me get bash completion working I would appreciate it.
>
> I'm really grateful for open source and people that contribute to it.
> This password manager gives us control over the security of our
> passwords. I've been using it since 2018 and it's been great.
>
> Brian
>
> --
More information about the Password-Store
mailing list