Developer MacOSX Shell Package Mangers
So configuring a new Mac is a right pain and a time consuming task at that, having done this several times over the past few months, I thought id write down the important content. It will be useful for myself but hopefully some else too.
The code and config files can be found here, please not this is hugely opinionated and is how I personally have my machine configured, I mostly use this repo as a scratch pad so I can remember how I configure my Mac. Its is a constantly updated and it will change as I discover new tools or setups.
xcode-select --install
apt-get
or yum
but for osx.brew tap caskroom/versions
& brew update
Java Latest JDK - installing java via brew is more convenient, the install puts java in the following location: /Library/Java/JavaVirtualMachines/jdkXXX.jdk/Contents/Home/bin/java
brew cask install java
Other useful tools:
brew install bash-completion
brew install git
brew install sbt
brew install scala
brew install maven
brew install awscli
brew install npm
Generate a new SSh key for the Machine https://help.github.com/enterprise/2.13/user/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
Add the Public key to Github https://help.github.com/enterprise/2.13/user/articles/adding-a-new-ssh-key-to-your-github-account/
Lets setup some useful config and shortcuts for using Git from the terminal, lets start with the base config.
Copy the .gitconfig in this repo to your home directory
> cp .gitconfig ~/.gitconfig
Then edit the .gitconfig
file and replace the name & email values.
> atom ~/.gitconfig
If your like me and use lots frameworks and build tools, its sometimes difficult to remember all the commands to tidy up or debug. Lets add them to a shell functions file so we can access them when needed.
Copy shell functions folder .shell
in this repo into your home directory.
cp -R .shell ~/.shell
Ok so now lets pimp your shell, zsh offers great auto complete and other great features not to mention it looks great too.
install oh my ZSH - install instructions
lets add some extra functionality.
brew install zsh-autosuggestions
brew install zsh-completions
Compare the .zshrc
config file in this repo with the one in your home directory. There are a few tweaks and settings.
Keep checking the Repo as there may be updates, and as always your feedback is welcome.
That’s all folks,
Alex