Skip to content

Instantly share code, notes, and snippets.

@hivivo
Last active March 14, 2019 22:53
Show Gist options
  • Save hivivo/f1e6665f16ccd5d58f691d1ba303cd48 to your computer and use it in GitHub Desktop.
Save hivivo/f1e6665f16ccd5d58f691d1ba303cd48 to your computer and use it in GitHub Desktop.
For new Macs. Personal use only.

To enable Terminal colors

Add the following lines into ~/.bash_profile file

export CLICOLOR=1
export TERM="xterm-color"
export PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '

alias ll='ls -l'
alias gs='git status'

Deal with npm global install

Execute the following lines to config npm global prefix:

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'

Update ~/.bash_profile to add:

export PATH=~/.npm-global/bin:$PATH

or install brew and yarn

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment