1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-09 21:43:30 +01:00
dotfiles/bash/bashrc.d/password-store.bash

16 lines
387 B
Bash
Raw Normal View History

# Enable password-storage and its bash completion
2020-04-14 17:00:41 +02:00
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