-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
42 lines (32 loc) · 1 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
#################################################
# ENV #
#################################################
PWD="$(pwd)"
# GO config
export GOPATH=$HOME/projects/go
export TERM=xterm-256color
export HISTSIZE=1000000
export SAVEHIST=$HISTSIZE
setopt EXTENDED_HISTORY
# Add rust binaries and local bin folder
export PATH="$GOPATH/bin:$PWD/.cargo/bin:$PWD/.bin/:$PWD/.npm-packages/bin/:$PATH"
export EDITOR=nvim
export VISUAL=nvim
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux ;;
Darwin*) machine=Mac ;;
CYGWIN*) machine=Cygwin ;;
MINGW*) machine=MinGw ;;
*) machine="UNKNOWN:${unameOut}" ;;
esac
# GPG config
export GPG_TTY=$(tty)
if [ "$machine" = "Mac" ]; then
export PATH="$PATH:/usr/local/bin:/opt/homebrew/bin"
alias ctags="$(brew --prefix)/bin/ctags"
fi
# Rust
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
[ -f ~/.local.profile ] && source ~/.local.profile
[ -f ~/.aliases ] && source ~/.aliases