-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
54 lines (41 loc) · 1.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
alias cs498="mosh cs498 -- tmux attach || tmux new"
alias ssh498="ssh cs498 -t -- tmux attach || tmux new"
alias rainbow="xxd -ps -c $(expr $(tput cols) / 2) /dev/zero | sed s/0/█/g | lolcat"
if [ ! -e ~/.antigen.zsh ]; then
curl -L https://raw.githubusercontent.com/zsh-users/antigen/master/antigen.zsh > ~/.antigen.zsh
fi
source ~/.antigen.zsh
antigen use oh-my-zsh
antigen theme kphoen
antigen bundle git
antigen bundle svn
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle ssh-agent
antigen bundle pip
antigen bundle python
antigen bundle virtualenv
antigen bundle command-not-found
antigen bundle fasd
antigen bundle vi-mode
bindkey -M viins 'jj' vi-cmd-mode
bindkey -M vicmd 'u' undo
bindkey -M viins ' ' magic-space
KEYTIMEOUT=1
# OS specific settings
if [[ $CURRENT_OS == 'OS X' ]]; then
antigen bundle brew
antigen bundle brew-cask
antigen bundle gem
antigen bundle osx
# Alias for quicklooking a file
alias ql='qlmanage -p "$@" > /dev/null 2>&1'
launchctl setenv PATH $PATH
elif [[ $CURRENT_OS == 'Linux' ]]; then
if [[ $DISTRO == 'CentOS' ]]; then
antigen bundle centos
fi
elif [[ $CURRENT_OS == 'Cygwin' ]]; then
antigen bundle cygwin
fi
antigen apply
eval "$(rbenv init -)"