-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
executable file
·122 lines (95 loc) · 4.24 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
export ZSH="$HOME/lib/oh-my-zsh"
export ZSH_THEME="disasm"
export DISABLE_AUTO_UPDATE="true"
export OH_MY_ZSH_DEBUG="true"
plugins=(command-coloring pip fabric lein redis-cli vagrant)
#test -f "$HOME/src/hgd/hd" && export OH_MY_ZSH_HG="$HOME/src/hgd/hd" || export OH_MY_ZSH_HG='hg'
source $ZSH/oh-my-zsh.sh
# Custom options -------------------------------------------------------------
unsetopt promptcr
# Set hostname
export HOSTNAME=$(hostname)
# Useful aliases -------------------------------------------------------------
#alias vi='gvim'
#alias vim='gvim'
alias dbg='gvim --role "Debugger"'
alias gentoo='/usr/local/gentoo/startprefix'
alias d2='wine /pvr/diablo2/Diablo\ II/Diablo\ II.exe -w'
alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"
# SSH Completion
zstyle ':completion:*:scp:*' tag-order \
files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:scp:*' group-order \
files all-files users hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' tag-order \
users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:ssh:*' group-order \
hosts-domain hosts-host users hosts-ipaddr
zstyle '*' single-ignored show
# Aliases
# Restart Apache (MAMP)
alias rsthttpd="sudo apachectl restart"
# ls quickies
alias ll="ls -Fhl --color"
#alias ls="ls -F"
alias la="ls -Fa --color"
alias j='z'
alias c='clear'
alias bp='bpython'
# t task manager
alias t='python ~/lib/python/t/t.py --task-dir ~/Dropbox/tasks --list tasks'
alias b='python ~/lib/python/t/t.py --task-dir ./bugs --list bugs'
# Drupal ctags
alias ctags-drupal='ctags --langmap=php:.engine.test.inc.module.theme.php --php-kinds=cdfi --languages=php --recurse'
# Load keychain if it exists
#keychain -q ~/.ssh/id_rsa
#. ~/.keychain/$HOSTNAME-sh
# PATH Changes ---------------------------------------------------------------
export PATH=~/bin:~/python/bin:/usr/local/bin:/usr/X11/bin:/usr/texbin:$PATH:$HOME/.rvm/bin:/usr/texbin
export MANPATH=$MANPATH:/usr/local/share/man
# Pear stack
#alias pear="php /usr/lib/php/pear/pearcmd.php"
#alias pecl="php /usr/lib/php/pear/peclcmd.php"
# android sdk
export PATH=~/lib/android-sdk-macosx/tools:~/lib/android-sdk-macosx/platform-tools:$PATH
# Other
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
# Ruby - RVM
#source ~/.rvm/scripts/rvm
# Environment variables ------------------------------------------------------
export EDITOR='vim'
export GREP_OPTIONS='-n --color=auto'
export HISTSIZE=1000
export HISTFILESIZE=1000
export HISTCONTROL=erasedups
export COMMAND_MODE=unix2003
export RUBYOPT=rubygems
# Lifelines Genealogy variables ----------------------------------------------
export LLDATABASES=.:/home/sbl5007/Dropbox/lifelines
export LLPROGRAMS=/home/sbl5007/Dropbox/lifelines/scripts
# Python variables -----------------------------------------------------------
export PIP_DOWNLOAD_CACHE="$HOME/.pip/cache"
export PYTHONSTARTUP="$HOME/.pythonrc.py"
export WORKON_HOME="${HOME}/lib/virtualenvs"
export PATH="${PATH}:/usr/local/share/python"
export PATH="${PATH}:$HOME/.lein/bin"
export PYTHONPATH="$PYTHONPATH:/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages"
export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.7.1/site-packages"
export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.7/site-packages"
export PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.6/site-packages"
export VEW_PATH="$HOME/lib/python/virtualenvwrapper/virtualenvwrapper.sh"
export PYTHONPATH="$HOME/lib/python/see:$PYTHONPATH"
export NODE_PATH="$NODE_PATH:/usr/local/lib/node:/usr/local/lib/node_modules"
# Mercurial variables --------------------------------------------------------
export PATH="$HOME/lib/hg/hg-stable:$PATH"
export PYTHONPATH="$HOME/lib/hg/hg-stable:$PYTHONPATH"
# PHP 5.4 ----------------------------------------------------------------------
export PATH="$(brew --prefix josegonzalez/php/php54)/bin:$PATH"
# Extra ----------------------------------------------------------------------
source ~/lib/z/z.sh
# Pre-Prompt Command ---------------------------------------------------------
function precmd () {
z --add "$(pwd -P)"
}
# Local Settings -------------------------------------------------------------
if [[ -s $HOME/.zshrc_local ]] ; then source $HOME/.zshrc_local ; fi