-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshaliases
51 lines (44 loc) · 1.16 KB
/
.zshaliases
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
#alias
alias gcc='gcc -Wall -g'
alias ls='ls -FG'
alias grep='grep --color=always'
if [[ -f 'del' ]];
then
alias rm='del'
fi
if [[ -x `which colordiff` ]]; then
alias diff='colordiff -u'
else
alias diff='diff -u'
fi
#Emacs.app
if [[ -f '/Application/Emacs.app/Contents/MacOS/Emacs' ]]; then
alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs -nw'
fi
#vim
if [ -e /opt/local/bin/vim ]; then
alias vim='/opt/local/bin/vim'
alias vi='/opt/local/bin/vim'
alias v='/opt/local/bin/vim'
else
alias vim='/usr/bin/vim'
alias vi='/usr/bin/vim'
alias v='/usr/bin/vim'
fi
#opencv
alias cv='gcc -g `pkg-config --cflags opencv --libs opencv`'
alias cppv='g++ `pkg-config --cflags --libs opencv`'
#zmv
alias zmv='noglob zmv -W'
if [[ "$OPTYPE" == "darwin"* ]];
then
#airport
alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport'
#
alias cleardesktop='defaults write com.apple.finder CreateDesktop -boolean false'
alias appeardesktop='defaults write com.apple.finder CreateDesktop -boolean true'
fi
# ssh with xterm
alias ssh='TERM=xterm ssh'
# rust + go setting
export PATH="$HOME/.cargo/bin:$GOPATH:$PATH"