Can I extend git functionality in the ~ / bin / directory?

As pointed out in numerous posts such as, you can extend git by placing the / script program in your PATH. I earned when I placed the script, for example /usr/local/bin/. But I add commands without root, but if I put it in ~/bin/, it will not be found.

~/bin/is in my PATH since it is added to mine .bashrcas follows:

export PATH="${PATH}:~/bin"

In mine, ~/bin/I used other things that I use regularly, so the PATH thing works for other things!

Is there something I am missing or something is wrong?

+4
source share
1 answer

The only missing element will be the naming convention:

git my-custom-made-extension ... → git-my-custom-made-extension

, ~/bin/git-my-custom-made-extension ( , chmod 755)

, ~: git, script, ~, , script. PATH .

. " git config"

+3

All Articles