-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzshrc_local_after
45 lines (34 loc) · 1.27 KB
/
zshrc_local_after
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
# Initialize completion
autoload -U compinit && compinit
# VIM as default editor
export VISUAL=vim
export EDITOR="$VISUAL"
# Go setup
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
# pyenv setup
export PYENV_ROOT=/usr/local/var/pyenv
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
# pyenv-virtualenv auto activation
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
# add this configuration to ~/.zshrc
export HISTFILE=~/.zsh_history # ensure history file visibility
export HH_CONFIG=hicolor # get more colors
bindkey -s "\C-r" "\eqhh\n" # bind hh to Ctrl-r (for Vi mode check doc)
# locale settings
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Pyenv CFLAGS and LDFLGAS
export CFLAGS="$CFLAGS -I$(brew --prefix openssl)/include"
export LDFLAGS="$LDFLAGS -L$(brew --prefix openssl)/lib"
# CUDA development environment setup
# export CUDA_HOME=/usr/local/cuda
# export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$CUDA_HOME/lib"
# export PATH="$CUDA_HOME/bin:$PATH"
export CUDA_HOME=/usr/local/cuda
export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/cuda/extras/CUPTI/lib
export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
export PATH=$DYLD_LIBRARY_PATH:$PATH
# Thefuck setup
eval "$(thefuck --alias)"
bash $HOME/.motd