-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
38 lines (30 loc) · 998 Bytes
/
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
#
# Defines environment variables.
#
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
export FPATH=~/.zfunctions:$FPATH
# Ensure that a non-login, non-interactive shell has a defined environment.
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
source "${ZDOTDIR:-$HOME}/.zprofile"
fi
# use vim as the visual editor
export VISUAL=nvim
export EDITOR=$VISUAL
export TERM="xterm-256color"
# ensure dotfiles bin directory is loaded first
# if [[ -z $TMUX ]]; then
# export PATH="$HOME/.bin:$PATH"
# export PATH=".git/safe/../../bin:$PATH"
# export PATH=$PATH:/usr/local/opt/go/libexec/bin
# fi
# # load rbenv if available
if which rbenv &>/dev/null ; then
eval "$(rbenv init - zsh --no-rehash)"
fi
# Local config
[[ -f ~/.zshenv.local ]] && source ~/.zshenv.local
source ~/.zalias
# docker
# eval $(docker-machine env default)