-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
43 lines (32 loc) · 1.02 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
### Junhao's zsh config
export ZSH=$HOME/.oh-my-zsh
export UPDATE_ZSH_DAYS=60
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
export EDITOR='emacs -nw'
ZSH_THEME="custom"
COMPLETION_WAITING_DOTS="true"
plugins=(git python pip)
source $ZSH/oh-my-zsh.sh
## Aliases
alias emacs='emacs -nw'
alias .2='cd ../..'
alias .3='cd ../../..'
alias L='| less'
alias TL='| tail -20'
alias NIL="> /dev/null 2>&1"
alias l='ls -CF'
alias ll='ls -Al'
alias la='ls -A'
## Solarized dircolors (requires GNU coreutils)
eval `gdircolors $HOME/.dircolors`
## Use dircolors in tab completion
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
## Fuzzy complete
# 0 -- vanilla completion (abc => abc)
# 1 -- smart case completion (abc => Abc)
# 2 -- word flex completion (abc => A-big-Car)
# 3 -- full flex completion (abc => ABraCadabra)
zstyle ':completion:*' matcher-list '' \
'm:{a-z\-}={A-Z\_}' \
'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \
'r:|?=** m:{a-z\-}={A-Z\_}'