-
Notifications
You must be signed in to change notification settings - Fork 12
/
zshrc
75 lines (58 loc) · 1.31 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
#load script
fpath=(~/ $fpath)
#unalias all the alias(es) before set anything
unalias -m "*"
#default charset and language
LANG='en_US.UTF-8'
LC_ALL='en_US.UTF-8'
#set default editor
export EDITOR='vim'
#GPG passphrase input workaround
export GPG_TTY=`tty`
#tmux color issue
alias tmux='\tmux -2'
#uniq unicode issue
alias uniq='LC_ALL=C uniq'
## Completions
autoload -U compinit
compinit -C
## case-insensitive (all),partial-word and then substring completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
###alias###
#ls
alias l='ls -C'
alias ll='ls -lh'
alias la='ls -A'
alias lal='ls -lha'
#grep
alias g='\grep --color=auto'
alias grep='\grep --color=auto'
alias fgrep='\fgrep --color=auto'
alias egrep='\egrep --color=auto'
#network tool
alias p='ping'
alias n='nslookup'
alias d='dig'
alias t='mtr'
alias ssh='ssh -v'
#cd
alias cd..='\cd ..'
alias cd...='\cd ../..'
alias ..='\cd ..'
alias ...='\cd ../..'
alias ....='\cd ../../..'
alias .....='\cd ../../../..'
#other alias
alias c='clear'
alias sudo='\sudo -E'
alias less='\less -R'
alias df='\df -hT'
alias du='\du -h'
alias free='\free -h'
alias wgetncc='wget --no-check-certificate'
alias last='\last | less'
alias tree='\tree -C'
alias optipng='\optipng -o7 -zm1-9 -preserve'
###alias###
source ~/.colorEcho