Bash Completion on Mac
esharakan at gmail.com
Sun Apr 10 15:24:43 UTC 2022
Hi, the homebrew installed path to the bash completion script is:
I don't see any symlink in /usr/local/share/ that points there.
BTW, I don't use bash as my shell; I'm just pointing out what I found my poking around in /usr/local/Cellar/pass/.
P.S. I run tcsh as my shell. I hacked together a tcsh completion script if anyone is interested. It's a bit rough around the edges, but does the job for me.
On 9 Apr 2022, at 18:57, Jens Tröger wrote:
> Hello Brian,
> I’m run `pass` on Mac using MacPorts and bash, and my .bashrc contains
> the following lines:
> # Bash completion for pass.
> if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
> . /opt/local/etc/profile.d/bash_completion.sh
> [[ -r "/opt/local/share/bash-completion/completions/pass" ]] && source "/opt/local/share/bash-completion/completions/pass"
> Homebrew’s base pass is different but other than adjusting that base
> path, I hope this helps?
> With many greetings,
> On Sat, Apr 09, 2022 at 08:07:53AM -0400, Brian Abbott wrote:
>> 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
>> 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
>> I followed the instructions here to install bash completion:
>> 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.
> Jens Tröger
More information about the Password-Store