linux - How can I use a dot file in a bash script unix -


i trying install git's autocomplete (and not want use homebrew this), placed following in bash_profile

if [ -f ~/.git-completion.bash ];   source ~/.git-completion.bash fi 

the .git-completion.bash install script donwload github, specifically:

https://github.com/git/git/raw/master/contrib/completion/git-completion.bash

the .git-completion.bash file exists, can see when run ls -la however, every time open terminal window, see

-bash: /users/username/git-completion.bash: no such file or directory

(i not know why not have "." in error)

i appreciate guidance on how fix without homebrew. thanks


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -