-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
157 lines (119 loc) · 3.44 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# interactive shells
setopt PUSHD_IGNORE_DUPS
setopt AUTO_PUSHD
setopt AUTO_LIST
setopt LIST_AMBIGUOUS
setopt NO_AUTO_MENU
setopt NO_MENU_COMPLETE
setopt COMPLETE_IN_WORD
setopt AUTO_PARAM_KEYS
setopt AUTO_PARAM_SLASH
setopt AUTO_REMOVE_SLASH
setopt HIST_VERIFY
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt PROMPT_SUBST
setopt NO_BEEP
setopt EXTENDED_GLOB
setopt MULTIOS
setopt CLOBBER
setopt NO_FLOW_CONTROL
#setopt RM_STAR_SILENT
bindkey -e
fpath=($HOME/.zsh $fpath)
autoload -U compinit; compinit
autoload -U colors; colors
#autoload -U zgitinit; zgitinit
#autoload -U git_status
# PS1
nice_orange=$'\e[38;5;208m'
nice_green=$'\e[38;5;154m'
nice_blue=$'\e[38;5;39m'
PROMPT="%{$nice_green%}%M%{$fg_reset%} %{$nice_blue%}%~%{$fg[default]%} %# "
#RPS1='$(git_status) (%j)'
# various
# FIXME why don't I need to export these, like the other crap below?
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
WORDCHARS=""
LISTMAX=9000
# bindings
bindkey '^w' kill-region # FIXME need to detect mark-active for ^w to be nice
bindkey '\ed' kill-word
bindkey '\ef' emacs-forward-word
bindkey '\eb' emacs-backward-word
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
# special dirs
sp=~/src/semitenn/spacemmo
pl=~/src/blackfoundry/packetloop
# fruity colours for less
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# OS-specific stuff
# Linux
if [ `uname` = "Linux" ]; then
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.13
alias ls='ls --color=auto'
fi
# Darwin
if [ `uname` = "Darwin" ]; then
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
#export ARCHFLAGS="-arch x86_64"
alias ls='ls -G'
alias mvim='mvim --remote'
fi
# aliases
alias grin='grin --force-color'
alias less='less -R'
alias new='ls -lath $HOME/Downloads/ | head'
# resty
. $HOME/dotfiles/resty/resty
# I want ^S please
if test -n $PS1; then
stty stop undef
fi
# just doit
#[[ -n "$(which brew)" ]] && source `brew --prefix`/etc/autojump
. ~/.zsh/cap_completion
#. ~/.zsh/title
[[ -f "$HOME/.rvm/scripts/rvm" ]] && \
source "$HOME/.rvm/scripts/rvm"
[[ -f "$HOME/.amazon_keys" ]] && \
source "$HOME/.amazon_keys"
export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.6.5.2/jars"
export CLOBBER=1
# packetloop
export PL_KEYSPACE=PacketloopDevelopment
export NNTPSERVER=news.tpg.com.au
#. /usr/local/bin/virtualenvwrapper.sh
fpath=($HOME/dotfiles/zsh-completions/src $fpath)
source /Users/david/dotfiles//zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
ZSH_HIGHLIGHT_STYLES[cursor]=white
eval "$(fasd --init auto)"
alias v='f -t -e vim -b viminfo'
alias mi='f -t -e mvim -b viminfo'
cd ~
mssh() {
mosh omni.broodax.net ssh $*
}
export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/Users/david/perl5";
export PERL_MB_OPT="--install_base /Users/david/perl5";
export PERL_MM_OPT="INSTALL_BASE=/Users/david/perl5";
export PERL5LIB="/Users/david/perl5/lib/perl5:$PERL5LIB";
export PATH="/Users/david/perl5/bin:$PATH";
export JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"
source ~/.zsh/autodir
source ~/.zsh/git-flow.plugin.zsh
export URBIT_HOME=${HOME}/src/play/urbit/urb
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting