-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
40 lines (30 loc) · 944 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
39
40
# -------------------------------------------------------------------
# EXPORTS
# -------------------------------------------------------------------
# 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
# Make vim the default editor
export EDITOR="vim"
# Don’t clear the screen after quitting a manual page
export MANPAGER="less -X"
# PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export PATH=$HOME/.local/bin:$PATH
## Langs
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
## Doom emacs
export PATH=$PATH:$HOME/.emacs.d/bin
# Add homebrew to the completion path
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
# Fix gpg errors
GPG_TTY=$(tty)
export GPG_TTY
. "$HOME/.cargo/env"