mirror of
https://github.com/kastdeur/dotfiles.git
synced 2025-06-01 20:09:13 +02:00
Pass Autocompletion in BASH
This commit is contained in:
parent
8e7b6fe9a8
commit
a1e0f231eb
2 changed files with 2 additions and 2 deletions
15
bash/bash.d/password-store
Normal file
15
bash/bash.d/password-store
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Enable password-storage and its bash completion
|
||||
|
||||
PASSDIR="${DOTFILES}/password-store"
|
||||
|
||||
# Only do this when the submodule is loaded
|
||||
if [ -d "${PASSDIR}/src" ]; then
|
||||
source "${PASSDIR}/src/completion/pass.bash-completion"
|
||||
|
||||
# If pass not registered as executable in your path
|
||||
# Make an alias
|
||||
if [[ $(command -v pass) ]]; then
|
||||
alias pass="${PASSDIR}/src/password-store.sh"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue