bgebhardt / osx_bin

My home folder bin directory. Use this to set up terminal the way I like it. Includes miscellaneous useful tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This sets up the bin directory and bash profile in the way I like it. Special thanks to:

Minimum Install: Bare Minimum to get up and running

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)"

Installation of base bin and setting up your bash shell

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 

Complete Install

To install everything else make sure you have the prerequisites and then you can run the scripts in the install section.

Prerequisites

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

How do I install Java for my Mac?

JDK

You also need the Java Development Kit (JDK) at Java SE Development Kit 8 - Downloads

TODO: document installation with Cask

Install other tools

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 and Configure Development Tools

PyCharm CE

  1. Install PyCharm CE edition
  2. Import settings in your Dropbox

Visual Studio Code

Install Visual Studio Code Settings Sync from the Visual Studio Marketplace. Use token and gist id from you password store.

Eclipse and STS

TBD

TODO

  • create a setup script for r. Currently just have a list of all R modules I have installed.
  • create python virtualenv setups

About

My home folder bin directory. Use this to set up terminal the way I like it. Includes miscellaneous useful tools.


Languages

Language:Tcl 31.9%Language:Shell 19.8%Language:AutoHotkey 19.6%Language:Python 12.9%Language:Perl 10.5%Language:XSLT 3.0%Language:Roff 1.0%Language:HTML 0.4%Language:PowerShell 0.4%Language:JavaScript 0.3%Language:CSS 0.2%Language:Ruby 0.1%Language:R 0.0%