-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
152 lines (135 loc) · 2.9 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
#
# OS Detection
#
UNAME=`uname`
# Fallback info
CURRENT_OS='Linux'
DISTRO=''
if [[ $UNAME == 'Darwin' ]]; then
CURRENT_OS='OS X'
else
# Must be Linux, determine distro
if [[ -f /etc/redhat-release ]]; then
# CentOS or Redhat?
if grep -q "CentOS" /etc/redhat-release; then
DISTRO='CentOS'
else
DISTRO='RHEL'
fi
fi
fi
# Use zsh-completions if it exists
if [[ -d "/usr/local/share/zsh-completions" ]]; then
fpath=(/usr/local/share/zsh-completions $fpath)
fi
#
# Load Antigen
#
# source ~/.antigen.zsh
#
# Load various lib files
#
#antigen bundle robbyrussell/oh-my-zsh lib/
#
# Load Theme
#
# antigen theme agnoster
# antigen theme bhilburn/powerlevel9k powerlevel9k
#
# Antigen Bundles
#
#antigen bundle autojump
#antigen bundle command-not-found
#antigen bundle common-aliases
#antigen bundle copydir
#antigen bundle copyfile
#antigen bundle cp
#antigen bundle docker
#antigen bundle git
#antigen bundle git-extras
#antigen bundle git-flow
#antigen bundle gnu-utils
#antigen bundle rbenv
#antigen bundle rsync
#antigen bundle rupa/z
#antigen bundle screen
#antigen bundle sublime
#antigen bundle sudo
#antigen bundle Tarrasch/zsh-autoenv
#antigen bundle zsh-users/zsh-syntax-highlighting
#antigen bundle zsh-users/zsh-history-substring-search ./zsh-history-substring-search.zsh
#
## For SSH, starting ssh-agent is annoying
#antigen bundle ssh-agent
#
## Node Plugins
#antigen bundle coffee
#antigen bundle node
#antigen bundle npm
#
## Python Plugins
#antigen bundle pip
#antigen bundle python
#antigen bundle virtualenv
# OS specific plugins
#if [[ $CURRENT_OS == 'OS X' ]]; then
# antigen bundle vagrant
# antigen bundle brew
# antigen bundle brew-cask
# antigen bundle gem
# antigen bundle osx
# antigen bundle rbenv
#elif [[ $CURRENT_OS == 'Linux' ]]; then
# # None so far...
# if [[ $DISTRO == 'CentOS' ]]; then
#
# fi
#elif [[ $CURRENT_OS == 'Cygwin' ]]; then
#fi
#
#antigen apply
#
# Keypad
# 0 . Enter
bindkey -s "^[Op" "0"
bindkey -s "^[Ol" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
# 7 8 9
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
# + - * /
bindkey -s "^[Ok" "+"
bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/"
#
# Load dotfiles
#
source ~/.fresh/build/shell.sh
#
# Load rbenv
#
if which rbenv > /dev/null; then
eval "$(rbenv init -)";
fi
# user settings...
CASE_SENSITIVE="true"
zstyle ':completion:*' special-dirs true
zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
docker
)