Skip to content

Instantly share code, notes, and snippets.

@kafkahw
Last active August 23, 2016 00:31
Show Gist options
  • Save kafkahw/5caa5305b00ff99e0396c2e48690a56a to your computer and use it in GitHub Desktop.
Save kafkahw/5caa5305b00ff99e0396c2e48690a56a to your computer and use it in GitHub Desktop.
Mac Setup
1. Terminal: use iTerm(https://www.iterm2.com/) instead
2. Use on-my-zsh instead of bash: https://github.com/robbyrussell/oh-my-zsh
3. User config for .zshrc:
# User configuration
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin"
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
export EDITOR='/usr/local/bin/subl -w'
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
export WORKON_HOME=$HOME/.virtualenvs
mkdir -p $WORKON_HOME
source `which virtualenvwrapper.sh`
export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
mkdir -p $PIP_DOWNLOAD_CACHE
# PIP started requiring insecure origins be explicitly trusted from v7.0.0
export PIP_TRUSTED_HOST=scm.healthe-axiom.cerner.corp
# git alias
# display log in a clean and readable format
alias githist="git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH="./node_modules/.bin:$PATH" # Add node_modules to PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment