-
Notifications
You must be signed in to change notification settings - Fork 7
/
zsh_profile
99 lines (76 loc) · 2.3 KB
/
zsh_profile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Import aliases
if [ -f ~/.zsh_aliases ]; then
. ~/.zsh_aliases
fi
# Set color
export TERM="xterm-256color"
# Print welcome message
# python ~/shascii/welcome.py
# Bullet Train oh-my-zsh theme
export BULLETTRAIN_VIRTUALENV_BG=203
export BULLETTRAIN_DIR_BG=75
export BULLETTRAIN_NVM_SHOW=true
# Virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/projects
[[ -s "/usr/local/bin/virtualenvwrapper.sh" ]] && source "/usr/local/bin/virtualenvwrapper.sh"
# Android-studio
if [ -d "$HOME/android-studio/bin/" ] ; then
PATH="$HOME/android-studio/bin:$PATH"
fi
# Eagle
if [ -d "$HOME/eagle-7.1.0/bin/" ] ; then
PATH="$HOME/eagle-7.1.0/bin:$PATH"
fi
# Java
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
# Maven
export PATH=/usr/local/apache-maven-3.2.3/bin:$PATH
# Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
# Copy with xclip: cb|cbf
source ~/shascii/scripts/copy.bash
# Mongodb
export PATH=~/mongodb/bin:$PATH
# GVM. Enable this line first when install 1.4: export CGO_ENABLED=0
[[ -s "/home/oscar/.gvm/scripts/gvm" ]] && source "/home/oscar/.gvm/scripts/gvm"
# Node
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Lf
LFCD="$HOME/.bin/lfcd.sh"
if [ -f "$LFCD" ]; then
source "$LFCD"
bindkey -s '^o' 'lfcd\n' # zsh
fi
# Blender
export PATH=~/.blender:$PATH
# Startup tmux
if [[ -z "$TMUX" ]]; then
exec tmux -2
fi
# Completion and alias with mux shortcut.
source ~/.bin/tmuxinator.zsh
# Pyenv
export PYENV_ROOT="$HOME/.pyenv"
if [[ -d $PYENV_ROOT ]]; then
export PATH="$PYENV_ROOT/bin:$PATH"
# Please make sure is placed toward the end.
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
# Rbenv
export RBENV_ROOT="$HOME/.rbenv"
if [[ -d $RBENV_ROOT ]]; then
export PATH="$RBENV_ROOT/bin:$PATH"
# Please make sure is placed toward the end.
eval "$(rbenv init -)"
fi
# RVM. We must use Rbenv or RVM at the same time.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
# Autoenv
source ~/.autoenv/activate.sh
# SCM Breeze.
[ -s "/home/oscar/.scm_breeze/scm_breeze.sh" ] && source "/home/oscar/.scm_breeze/scm_breeze.sh"