-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
68 lines (49 loc) · 1.58 KB
/
zshenv
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
## Environment setup for all types of shell
export DOTFILES_DIR=$HOME/dotfiles
export ZSH_CACHE_DIR=$HOME/.zsh
export ZSH_VIM_BACKUPS=$ZSH_CACHE_DIR/vim_backups
export ZSH_VIM_SWAPS=$ZSH_CACHE_DIR/vim_swaps
export ZSH_VIM_UNDO=$ZSH_CACHE_DIR/vim_undo
export ZSH_VIM_TMP=$ZSH_CACHE_DIR/vim_tmp
export EDITOR=vim
export PRIVATE_FOLDER=$ZSH_CACHE_DIR/private
export PRIVATE_GIT="git@github.com:hungnguyenm/dotfiles_private.git"
if [[ `uname` == 'Linux' ]]; then
# place holder
elif [[ `uname` == 'Darwin' ]]; then
# place holder
fi
PATH="$HOME/bin:/opt/homebrew/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
PATH="$PATH:$DOTFILES_DIR/scripts"
LD_LIBRARY_PATH="/usr/local/lib"
## Path
# - anaconda
PATH="$HOME/opt/anaconda3/bin:$HOME/opt/anaconda2/bin:$PATH"
# - cmake
PATH="$HOME/opt/cmake/bin:$PATH"
# - golang
export GOROOT="$HOME/opt/go"
export GOPATH="$HOME/develop/go"
PATH="$GOROOT/bin:$PATH"
# - OSX
PATH="$PATH:/opt/X11/bin"
# - OSX - homebrew
export HOMEBREW_NO_ANALYTICS=1
# - OSX - LaTex
PATH="$PATH:/Library/TeX/texbin"
# - Ubuntu - cuda
PATH="/usr/local/cuda/bin/:$PATH"
export CUDA_HOME="/usr/local/cuda"
# - Ubuntu - sdkman
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
export PATH
## Libraries
# - Ubuntu - cuda
LD_LIBRARY_PATH="/usr/local/cuda/lib64:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
# Some additional parameters
# - enforce CUDA to support higher gcc version
export EXTRA_NVCCFLAGS="-Xcompiler -std=c++98"
# Ignore some system global files
skip_global_compinit=1