donnemartin / dev-setup

macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.
Other
6.13k stars 1.15k forks source link

Why does bootstrap.sh copy the installation scripts to the home directory? #23

Open dportabella opened 8 years ago

dportabella commented 8 years ago

if I understood it corretly from README.MD, we can install like this:

$ git clone https://github.com/donnemartin/dev-setup.git && cd dev-setup
$ ./.dots bootstrap osxprep brew osx

and later when we need datastores, we run

$ cd ~/dev-setup
$ ./.dots datastores

I understand that bootstrap copies the dot files to the home directory, such as .bash_profile and .exports. but why do you also copy the installation scripts, such as .dots and datastores to the home directory, if we are always going to execute them from ~/dev-setup/ (as they can be updated from git)?

thomas-hervey commented 8 years ago

I was wondering this as well. I believe there is a note about an option to save the install files to another location, but this should be default.

donnemartin commented 8 years ago

Hmm, yes I can see this being confusing.

Interested in a PR? I think you'd need to add the installation scripts to the excludes in bootstrap.sh:

https://github.com/donnemartin/dev-setup/blob/master/bootstrap.sh#L8-L9