.bash_profile 335 B

12345678910111213141516171819
  1. #!/bin/bash
  2. BASH_COMPLETION="/usr/share/bash-completion/completions"
  3. files=(
  4. "$HOME/.bashrc"
  5. "$HOME/.profile"
  6. "$BASH_COMPLETION/pass"
  7. "$BASH_COMPLETION/pass-otp"
  8. "$BASH_COMPLETION/git"
  9. )
  10. for file in "${files[@]}"; do
  11. if [ -e "$file" ]; then
  12. source "$file"
  13. fi
  14. done
  15. unset -v BASH_COMPLETION files