4 ms·
Any chance you have this script on GitHub/somewhere public?
by tushar-r 9y ago
Any chance you have this script on GitHub/somewhere public?
- memco 9y agoYou can take a look at mine: https://github.com/memco/dotfiles https://github.com/memco/dotfiles. A number of other people have theirs online as well. Review default preferences and the brewfile before you run install.sh. Not updated for 10.13 yet, but most of it should remain unchanged. Having your config setup this way will save you a lot of hassle if you do find yourself having to rebuild your system. Took me about a week after having to rebuild the first time it happened and now I know it won't take more than a few hours at worst.
- tushar-r 9y agoThanks!
- coldtea 9y agoI don't have it polished enough for that, but the gist (no pun intended) is: I keep all my documents in a single folder called ~/AAA (so it lists on top) with subfolders like /WORK, /PHOTOS /CODE (e.g. /CODE/GO), /MUSIC etc, so I can just rsync that and be totally backuped. Inside ~/AAA I also have a folder called SYSTEM_FILES, where I keep stuff like bashrc, vim directory etc. My ~/.bashrc etc are just symlinks to ~/AAA/SYSTEM_FILES/bashrc. So I start with a script that rsyncs the AAA folder from the backup disk to ~ on the Mac, and then creates the appropriate symlinks for .bashrc, .vimrc etc. Now all my documents are on my Mac and I have a working shell. Then the script does: # install brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # a number of brew related installs brew install rsync brew install mercurial brew install watchman brew install binutils .. # some brew-driven font installs brew tap caskroom/fonts brew cask install font-roboto-mono .. # install various linter-related stuff for my ST3 brew install -g node sudo npm install -g eslint sudo npm install -g eslint-plugin-import sudo npm install -g eslint-plugin-react sudo npm install -g babel-eslint pip install flake8 pip install requests .. # install various big packages from casks brew cask install vagrant # install mas -- a mac app store cli client brew install mas # use a wrapper script that extracts mas ids from the apps I want ~/mas_install.py Pixelmator ~/mas_install.py Skitch ~/mas_install.py Evernote ... # use a shell script to copy .bashrc and co # create symbolic links etc ~/prepare_environment.sh # configure the Mac with various "defaults" options defaults write NSGlobalDomain AppleShowAllExtensions -bool false ... # finally the script sets up Mail.app, copies my Sublime Text packages to the ~/Library/Application Support etc.
- mikemcquaid 9y agoYou may want to check out https://github.com/Homebrew/homebrew-bundle https://github.com/Homebrew/homebrew-bundle which will allow you to do a bunch of that in a single file. https://github.com/mikemcquaid/strap https://github.com/mikemcquaid/strap and https://github.com/benbalter/plister https://github.com/benbalter/plister may be of interest too.