Setup scripts and links for web development on a new mac.
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew cask install iterm2
You can enable better integration between your shell and iTerm2.
iTerm2 > Install Shell Integration
Then, add the following to your .zshrc: source ~/.iterm2_shell_integration.zsh.
brew install git
brew install zsh
bash sudo vim /etc/shells
- Add new line:
/usr/local/bin/zsh
- Run
chsh -s /usr/local/bin/zsh
- Restart the terminal and run
bash echo $SHELL
and confirm it is zsh
sh -c “$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
brew install romkatv/powerlevel10k/powerlevel10k
- Add the following to .zshrc file:
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
ZSH syntx hightlighting
brew install zsh-syntax-highlighting
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Restart the terminal and type
command -v nvm
to confirm it is installed
nvm install node #install latest version
nvm install 6.14.4 # or 10.10.0, 8.9.1, etc
brew cask install docker
brew install tldr
brew cask install visual-studio-code