-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
49 lines (35 loc) · 1.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
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
# Initialize GPG
eval $(keychain --eval --agents gpg,ssh id_rsa 0x0959B40C9BCDC722)
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Use vim as the default editor
export EDITOR="vim"
# Always install Casks to /Applications by default
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
# Add Homebrew to the PATH
export PATH="$(brew --prefix)/bin:$PATH"
# Ruby
eval "$(rbenv init - --no-rehash zsh)"
# Node
export NVM_DIR="${ZDOTDIR:-$HOME}/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# Require all pip installations to require a virtualenv
export PIP_REQUIRE_VIRTUALENV=true
# Set virtualenv directories
export WORKON_HOME="$HOME/Workspace"
export PROJECT_HOME=$WORKON_HOME
# Aliases
[[ -f ~/.aliases ]] && source ~/.aliases
# Local bin
export PATH="${ZDOTDIR:-$HOME}/dotfiles/bin:$PATH"
# Local config
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"