MacOS Development Notes
Just documenting my current developer setup in MacOS.
Create Bash Profile
$ cd ~ # change to home directory
$ touch .bash_profile # create empty .bash_profile file
Edit .bash_profile
file using Terminal text editor by using the following command:
$ sudo nano .bash_profile # opens .bash_profile file via nano
My Current Bash Profile
# Adds Colour to Terminal
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# Aliases
alias ls='ls -GFh'
alias ll='ls -FGlAhp'
alias f='open -a Finder ./'
Type source .bash_profile
to reload and see the changes.
Install XCode Command Line Tools
$ xcode-select --install
Install Homebrew
To install Homebrew open Terminal and paste the following in a macOS Terminal prompt.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Make sure everything is working by running: brew doctor
Homebrew Commands
brew update # Update brew and cask
brew list # List installed packages
brew install <package> # Install a package
brew upgrade <package> # Upgrade a package
brew unlink <package> # Unlink
brew link <package> # Link
brew list --versions <package> # List versions installed
Cask Commands
brew cask
is an extension of brew that allows the management of graphical applications
Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to the installation and management of GUI macOS applications such as Atom and Google Chrome.
The following command installs Eclipse Java EE and Visual Studio Code using Homebrew
$ brew cask install \
eclipse-jee \
visual-studio-code
Install Bash Completion
$ brew install bash-completion
Add the following to your .bash_profile
file:
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
Install Python
$ brew install python