-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
49 lines (42 loc) · 1.33 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
# ENV VARS
export EDITOR=vim
export VISUAL="vim -f"
export LANG=en_US.UTF-8
export PYTHONSTARTUP=~/.pythonrc
export DOTFILES=~/.dotfiles
export INPUTRC=~/.inputrc
export HISTFILE=~/.zsh_history
export HISTSIZE=30000
export SAVEHIST=30000
export HIST_IGNORE_DUPS=true
export HIST_IGNORE_SPACE=true
export HIST_FIND_NO_DUPS=true
# If we have a local struture, use it.
if [[ -d ~/.local ]]; then
if [[ -d ~/.local/lib ]]; then
export LD_LIBRARY_PATH="$HOME/.local/lib:$LD_LIBRARY_PATH"
export LD_RUN_PATH="$HOME/.local/lib:$LD_RUN_PATH"
export PKG_CONFIG_PATH="$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH"
export LDFLAGS="-L$HOME/.local/lib $LDFLAGS"
export CFLAGS="-I$HOME/.local/include $CFLAGS"
export CPPFLAGS="$CFLAGS"
fi
if [[ -d ~/.local/man ]]; then
export MANPATH="$HOME/.local/man:$MANPATH"
fi
if [[ -d ~/.local/bin ]]; then
path=(~/.local/bin $path)
fi
fi
# Add my personal bin to the front
path=(~/bin $path)
#Set up virtualenvwraper
if which virtualenvwrapper_lazy.sh &> /dev/null; then
export WORKON_HOME=~/.virtualenvs
[[ -d $WORKON_HOME ]] || mkdir -p $WORKON_HOME
export VIRTUAL_ENV_DISABLE_PROMPT=true
. $(which virtualenvwrapper_lazy.sh)
fi
if [[ -f ~/.dircolors ]] && which dircolors &>/dev/null; then
eval $(dircolors ~/.dircolors)
fi