-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
58 lines (43 loc) · 2.16 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="spencer"
# Uncomment the following line to change how often to auto-update (in days).
export UPDATE_ZSH_DAYS=1
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git osx zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
# User configuration
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
# Delete merged branches.
alias gbclean="git branch --merged | egrep -v \"(^\*|master)\" | xargs git branch -d"
# Add a build-triggering commit.
alias gctb='git commit --allow-empty -m "Trigger Build"'
# Short for "re-yarn" - reinstall node modules.
alias rey="rm -rf node_modules && yarn"
alias ren="rm -rf node_modules && npm i"
alias ns="npm start"
# "Git-add checked in"
alias gach='ga $(git ls-files -m)'
# "On an ambiguous completion, instead of listing possibilities or beeping, insert the first match
# immediately."
setopt menu_complete
# nvm config brew brew-based installation
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# For pyenv
eval "$(pyenv init -)"
# Also for pyenv, per seemingly necessary workaround from
# https://github.com/pyenv/pyenv/issues/1066#issuecomment-531510186. `pyenv install` breaks without
# this (after running all of the recommended instructions from
# https://github.com/pyenv/pyenv/wiki#suggested-build-environment for OSX).
export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk