WebReinvent Internal Docs
Mac Setup

rc file

  • Typing echo $SHELL in your Terminal tells you which shell you’re using.
  • If you’re using Bash, edit $HOME/.bashrc.
  • If you’re using Z shell, edit $HOME/.zshrc.
  • If you’re using a different shell, the file path and filename will be different on your machine.

bashrc

  • To open and edit .bashrc file use below command
open ~/.bashrc
  • If the above command gives error, then it means .bashrc file does not exist. So you need to create .bashrc file using below command and then run the above command again.
touch ~/.bashrc

zshrc

  • To open and edit .zshrc file use below command
open ~/.zshrc
  • If the above command gives error, then it means .zshrc file does not exist. So you need to create .zshrc file using below command and then run the above command again.
touch ~/.zshrc

Example of rc file content

export ANDROID_HOME="/Users/$USER/Library/Android/sdk"
export GEM_HOME=$HOME/.gem

export PATH=$GEM_HOME/bin:$PATH

export PATH="/Users/$USER/homebrew/bin:$PATH"

export PATH="$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"

export PATH="$PATH:/Volumes/Projects/$USER/flutter/bin"

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"

alias fpubget="~/scripts/flutter-pubget.sh"

export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

Copyright © 2024