Quick setup of developer’s mac
So you have a new mac? Whatever.
Here are a few notes to help speed up installing some useful tools
Broswers
Mobile Emulators
-
Xcode (developer tools) from the app store
then the command-line tools:
xcode-select --installOnce Xcode is installed a link to the Ios simulator can be created by launching xcode:
- Selecting ‘xcode’ menu -> ‘Open Developer Tool’ -> ‘simulator’.
- Once the simulator is open, drag its icon from the Launcher into the ‘Applications’ directory
Command Line tools
-
Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -
Git:
brew install git -
Node:
brew install nodeif you have permission issues:
sudo chown -R $USER:$GROUP ~/.npm -
Node version management: (see Node version management AFTER points 5, and 6)
-
add git highlighting to the terminal:
instructions: http://neverstopbuilding.com/gitpro
short version:
curl -o ~/.git-completion.bash 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash'curl -o ~/.git-prompt.sh "https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh"if you are going to follow ‘iterm, with zsh and Material Theme’ add the following to .bash_profile:
#!/bin/bash source ~/.git-completion.bash source ~/.git-prompt.sh alias ll='ls -lah' alias gg='git status -s'
if you are NOT going to follow ‘iterm, with zsh and Material Theme’ add the following to .bash_profile:
```
#!/bin/bash
source ~/.git-completion.bash
source ~/.git-prompt.sh
MAGENTA="\[\033[0;35m\]"
YELLOW="\[\033[0;33m\]"
BLUE="\[\033[34m\]"
LIGHT_GRAY="\[\033[0;37m\]"
CYAN="\[\033[0;36m\]"
GREEN="\[\033[0;32m\]"
GIT_PS1_SHOWDIRTYSTATE=true
export LS_OPTIONS='--color=auto'
export CLICOLOR='Yes'
export LSCOLORS=gxfxbEaEBxxEhEhBaDaCaD
export PS1=$LIGHT_GRAY"\u@\h"'$(
if [[ $(__git_ps1) =~ \*\)$ ]]
# a file has been modified but not added
then echo "'$YELLOW'"$(__git_ps1 " (%s)")
elif [[ $(__git_ps1) =~ \+\)$ ]]
# a file has been added, but not commited
then echo "'$MAGENTA'"$(__git_ps1 " (%s)")
# the state is clean, changes are commited
else echo "'$CYAN'"$(__git_ps1 " (%s)")
fi)'$BLUE" \w"$GREEN": "
alias ll='ls -lah'
alias gg='git status -s'
```
-
iTerm (if you want it…but you do) https://iterm2.com/
Then you can make iTerm awesome:
-
Node Version Management
Code Tools
-
Extensions:
- John Papa’s Angular Essentials Extension
- gitlens
- Path Intellisense
- NPM Intellisense
- SCSS Intellisense
Add VSCode command to terminal:
- In VSCcode open the command palette (cmd + shift + p )
- Strart typing
shell command…. - click on
SHELL Command: Install 'code' command in PATH
-
sourcetree https://www.sourcetreeapp.com/
** To install commandline tools
