Skip to content

Instantly share code, notes, and snippets.

@jjercx
Last active March 2, 2021 15:34
Show Gist options
  • Save jjercx/ef7a47c6fc6411fed038cfbeff28725c to your computer and use it in GitHub Desktop.
Save jjercx/ef7a47c6fc6411fed038cfbeff28725c to your computer and use it in GitHub Desktop.
ZSH Config 2020-08
# alias
alias ip="ipconfig getifaddr en0"
alias mac="ifconfig en1 | awk '/ether/{print $2}'"
# nvm
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"
# Android for React Native
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
# ZSH config
export ZSH="/Users/juanjo/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
git
colored-man-pages colorize pip python brew osx
bundler dotenv osx rake rbenv ruby
)
source $ZSH/oh-my-zsh.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment