forked from andy135793726/MyVimrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc_cmlab
179 lines (129 loc) · 6.01 KB
/
zshrc_cmlab
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
HOME=/home/master/04/weitang114/
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="robbyrussell"
ZSH_THEME="dst"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# 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 zsh-autosuggestions)
# User configuration
## reset variables
# # mainly for tmux, because when tmux session starts, it will
# run zshrc again, making variables duplicated
export PATH=
export LD_LIBRARY_PATH=
export PYTHONPATH=
export PATH="$HOME/Caffe/build/tools:$HOME/bin/:/bin:$HOME/scripts:$HOME/node_modules/less/bin:$HOME/.autojump/bin:/usr/local/bin:/usr/bin:/usr/local/games:/usr/games:/usr/local/cuda-7.5/bin:$HOME/bin:$HOME/Caffe/build/tools:$HOME/colormake/:$HOME/word2vec:$HOME/.local/bin/"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# 把/usr/lib/python2.7/dist-packages/ 放到PYTHONPATH裡,/usr/lib/python2.7/site.py會因為duplicate而把預設放在第一位的那個刪掉。
# 原本sys.path會先放 /usr/lib/python2.7/dist-packages,才接PYTHONPATH
# 這樣做可以讓/usr/lib/python2.7/dist-packages排在PYTHONPATH內或後面。
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/dist-packages/:/usr/lib/python2.7/dist-packages/
alias git-cola='/auto/extra/weitang114/git-cola-2.1.0/bin/git-cola'
alias ll="ls -l"
PATH=$PATH:$HOME/colormake/
PATH=$PATH:$HOME/word2vec
export LD_LIBRARY_PATH=/usr/lib/:/usr/local/lib/:/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=/home/master/02/hsinfu/opencv2.4.2/lib:/home/master/02/hsinfu/intel/mkl/lib/intel64:$LD_LIBRARY_PATH
#CUDA_DIR=/project/project-mira6/cuda/cuda-8.0
CUDA_DIR=/usr/local/cuda
MKL_DIR=/home/master/02/hsinfu/intel/mkl
export PATH=$CUDA_DIR/bin::$HOME/node_modules/less/bin:$PATH
export LD_LIBRARY_PATH=$CUDA_DIR/lib64:/tmp2/opencv-2.4.8/release/lib:$MKL_DIR/lib/intel64:/home/master/02/hsinfu/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/:$LD_LIBRARY_PATH
export LD_LIB_PATH=/home/master/02/hsinfu/opencv2.4.2/include:/home/master/02/hsinfu/intel/mkl/include:$LD_LIB_PATH
export LD_LIB_PATH=$MKL_DIR/include:$LD_LIB_PATH
alias ls='ls --color'
alias sls='screen -r'
sr(){
screen -r $1
}
export PATH=$HOME/Caffe/build/tools:$HOME/bin/:$PATH
export PYTHONPATH=$HOME/Caffe/python:/tmp3/weitang114/Caffe/python:$PYTHONPATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
export PATH=$PATH:$HOME/bin:$HOME/Caffe/build/tools
# autojump
[[ -s $HOME/.autojump/etc/profile.d/autojump.sh ]] && source $HOME/.autojump/etc/profile.d/autojump.sh
# fasd
eval "$(fasd --init auto)"
alias v='f -e vim' # quick opening files with vim
alias m='f -e mplayer' # quick opening files with mplayer
alias o='a -e xdg-open' # quick opening files with xdg-open
#tmux alias
alias ta='tmux attach -t'
alias ts='tmux new-session -s'
alias tl='tmux list-sessions'
alias tksv='tmux kill-server'
alias tkss='tmux kill-session -t'
# openblas
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/OpenBLAS/lib
# cacaview
alias caca="cacaview"
# colorful cat
alias ccat='pygmentize -g'
# magma
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/magma/lib
# cudnn v5.1
CUDNN_DIR=/project/project-mira6/cudnn/cudnn5.1/cuda/lib64
export LD_LIBRARY_PATH=$CUDNN_DIR:$LD_LIBRARY_PATH
# local first, system second.
# MUST ADD THE SYSTEM ONES HERE TO FORCE IT TO BE AT THE SECOND, OR IT WOULD BE THE FIRST.
export PYTHONPATH=$HOME/.local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/:$PYTHONPATH
# tensorflow
TF_INSTALL_DIR=$HOME/tensorflow/built_package
export PYTHONPATH=$PYTHONPATH:$TF_INSTALL_DIR
export PATH=$PATH:$TF_INSTALL_DIR/tensorflow/tensorboard