Last active
April 26, 2017 17:39
-
-
Save svnlto/9cf6303b0c245274123e1a877f7a74ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source $HOME/.antigen/antigen.zsh | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh | |
antigen bundle git | |
antigen bundle github | |
antigen bundle nvm | |
antigen bundle npm | |
antigen bundle docker | |
antigen bundle rsync | |
antigen bundle command-not-found | |
antigen bundle unixorn/docker-helpers.zshplugin | |
antigen bundle denysdovhan/spaceship-zsh-theme | |
# Syntax highlighting bundle. | |
antigen bundle zsh-users/zsh-syntax-highlighting | |
antigen theme spaceship | |
# Tell antigen that you're done. | |
antigen apply | |
# PROMPT | |
SPACESHIP_PROMPT_SYMBOL='➔' | |
SPACESHIP_PROMPT_ADD_NEWLINE=true | |
SPACESHIP_PROMPT_SEPARATE_LINE=true | |
# GIT | |
SPACESHIP_GIT_SHOW=true | |
SPACESHIP_GIT_UNCOMMITTED='+' | |
SPACESHIP_GIT_UNSTAGED='!' | |
SPACESHIP_GIT_UNTRACKED='?' | |
SPACESHIP_GIT_STASHED='$' | |
SPACESHIP_GIT_UNPULLED='⇣' | |
SPACESHIP_GIT_UNPUSHED='⇡' | |
# NVM | |
SPACESHIP_NVM_SHOW=true | |
SPACESHIP_NVM_SYMBOL='⬢' | |
# RUBY | |
SPACESHIP_RUBY_SHOW=false | |
# Homebrew | |
export PATH="/usr/local/bin:$PATH" | |
export PATH="/usr/local/sbin:$PATH" | |
# Ruby... | |
if which rbenv > /dev/null; then | |
eval "$(rbenv init -)"; | |
fi | |
# nvim | |
export NVIM_TUI_ENABLE_CURSOR_SHAPE=1 | |
# nvm | |
export NVM_DIR=~/.nvm | |
source $(brew --prefix nvm)/nvm.sh | |
# load .nvmrc files if exist | |
autoload -U add-zsh-hook | |
load-nvmrc() { | |
local node_version="$(nvm version)" | |
local nvmrc_path="$(nvm_find_nvmrc)" | |
if [ -n "$nvmrc_path" ]; then | |
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
if [ "$nvmrc_node_version" = "N/A" ]; then | |
nvm install | |
elif [ "$nvmrc_node_version" != "$node_version" ]; then | |
nvm use | |
fi | |
elif [ "$node_version" != "$(nvm version default)" ]; then | |
echo "Reverting to nvm default version" | |
nvm use default | |
fi | |
} | |
add-zsh-hook chpwd load-nvmrc | |
load-nvmrc | |
export EDITOR=nvim | |
export REACT_EDITOR=nvim | |
ulimit -n 4096 | |
alias npmoffline="npm --cache-min 9999999 " | |
# babel | |
export BABEL_DISABLE_CACHE=1 | |
# Customize to your needs... | |
export PATH=$PATH:~/.bin | |
# launch tmux | |
alias tmux="tmux -2" | |
if [[ $TERM == xterm ]]; then TERM=xterm-256color fi | |
if [ "$TMUX" = "" ]; then tmux; fi | |
export NO_PROXY=192.168.99.0/24 | |
# dvm | |
[[ -s "$(brew --prefix dvm)/dvm.sh" ]] && source "$(brew --prefix dvm)/dvm.sh" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment