-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
executable file
·47 lines (43 loc) · 1.52 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
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="crunch"
#export ZSH_THEME="eastwood"
#export ZSH_THEME="bira"
#export ZSH_THEME="dst"
#export ZSH_THEME="alanpeabody"
#export ZSH_THEME="random"
# oh-my-zsh plugins
plugins=(git ruby heroku gem rbenv bundler rails screen ssh-agent vundle)
source $ZSH/oh-my-zsh.sh
export PATH="$HOME/.rbenv/bin:$HOME/bin:/usr/local/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/share/npm/bin:$PATH"
# Better manual pages (uses -help as fallback if no man page exists)
man () {
/usr/bin/man $@ || (help $@ 2> /dev/null && help $@ | most)
}
# Extract things. Thanks to urukrama, Ubuntuforums.org
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1;;
*.tar.gz) tar xzf $1;;
*.bz2) bunzip2 $1;;
*.rar) rar x $1;;
*.gz) gunzip $1;;
*.tar) tar xf $1;;
*.tbz2) tar xjf $1;;
*.tgz) tar xzf $1;;
*.zip) unzip $1;;
*.Z) uncompress $1;;
*.7z) 7z x $1;;
*) echo "'$1' cannot be extracted via extract()" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
source $HOME/.aliases
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi