linux - How to effectively organize scripts so they can be put under version control? -
i have ever growing list of scripts simple 1 liners in bash more complex python scripts. source 1 liners ~/.bash_functions
file, while put more complex scripts /usr/local/bin
.
i put scripts under version control portable different machines. since not custom scripts reside under usr/local/bin
, of other appliactions, create subdirectory, e.g. this:
/usr/local/bin/scripts/ |-python |-ruby |-bash
and create git repo out of said scripts folder? or there better, canonical way organizing , versioning scripts?
i install them in ~/bin
, add $path
. can source control your bin directory wish.
Comments
Post a Comment