Could I extend git functionality in my ~/bin/ directory? -


as stated in numerous posts this extend git placing program/script in path. working if place script in example /usr/local/bin/. add commands without being root, if if put in ~/bin/ not found.

~/bin/ in path since added in .bashrc this:

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

i got other stuff in ~/bin/ use regularly path-thing working other things!

is there i'm missing or doing wrong here?

the missing piece naming convention:

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

that means need have executable file ~/bin/git-my-custom-made-extension (no extension, chmod 755)

plus, don't rely on ~: git shell execute script might not have same ~ user owns script. path should include full path of home.

see "shell variable expansion in git config"


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -