This sets up the bin directory and bash profile in the way I like it. Special thanks to:
- barryclark/bashstrap: A quick way to spruce up your terminal in OSX.
- mathiasbynens/dotfiles: .files, including ~/.osx — sensible hacker defaults for OS X
- alebcay/awesome-shell: A curated list of awesome command-line frameworks, toolkits, guides and gizmos. Inspired by awesome-php. - great list of shell commands
brew
Install brew from Homebrew — The missing package manager for OS X
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Make sure a ~/bin directory does not exist. It will clone the repository to your home directory.
mv ~/bin ~/bin_bak
git clone https://github.com/bgebhardt/osx_bin.git ~/bin
cp -i ~/bin/.bash_profile ~/
cp -i ~/bin/.bashrc ~/
In Terminal set your profile to Homebrew for the colors to work.
To finish setting up bash install run the following:
Now clone in the tools you need. Some are referenced by osx_bin
~/bin/gitclone.sh
chmod a+x ~/bin/bashstrap/z.sh # need to make sure this is executable
Add all tools cloned directly from git. (Note these are also in the .gitignore). The proper way would be with submodules, but I'm lazy at the moment.
Run brew install gh
to Add better GitHub support to git on the command-line
Run brew install hub
to Add GitHub support to git on the command-line (https://hub.github.com/)
In iTerm2 select iTerm2>Install Shell Integration (see https://iterm2.com/documentation-shell-integration.html)
cask for installing key mac apps
You can install a minimum set of my favorite apps by running:
~/bin/setup/brew-cask-minimum.sh
To install everything else make sure you have the prerequisites and then you can run the scripts in the install section.
Python
Install Python with brew. Also installed by brew.sh.
brew install python
pip install --upgrade pip # upgrade pip while you're at it
pip install Pygments
You can also install Python from its downloadable installer at Download Python at Python.org
Java
Preferred approach is to use cask
brew cask install java
Install Java from here: Download Java for Mac OS X
JDK
You also need the Java Development Kit (JDK) at Java SE Development Kit 8 - Downloads
TODO: document installation with Cask
Install common brew tools.
~/.bin/setup/brew.sh
This will take quite a while. This may also fail if brew hits your maximum github API requests. Wait for an hour and try again.
Install Apple Store apps I use via the very cool mas CLI for App Store. Requires mas be installed with brew (done by brew.sh)
~/bin/setup/mas.sh
This will take quite a while.
Install common python packages and tools.
~/bin/setup/python.sh
This will take quite a while.
Install common node npm packages and tools.
~/bin/setup/npm.sh
This will take quite a while.
- Install PyCharm CE edition
- Import settings in your Dropbox
Install Visual Studio Code Settings Sync from the Visual Studio Marketplace. Use token and gist id from you password store.
TBD
TODO
- create a setup script for r. Currently just have a list of all R modules I have installed.
- create python virtualenv setups