-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzprofile
71 lines (56 loc) · 2.27 KB
/
zprofile
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Custom and additional completions
[ -f "$HOME/.completions/completions" ] && source "$HOME/.completions/completions"
# Homebrew
export HOMEBREW_PREFIX="/usr/local"
if [ -s "/opt/homebrew/bin/brew" ]; then
export HOMEBREW_PREFIX="/opt/homebrew"
fi
eval $("$HOMEBREW_PREFIX/bin/brew" shellenv)
export HOMEBREW_NO_ENV_HINTS=1
# GPG
export GPG_TTY=$(tty)
# Golang
export GOPATH="$HOME/go"
export GOBINPATH="$GOPATH/bin"
export GOPRIVATE="github.com/dan9186,github.com/gomicro,github.com/hemlocklabs"
alias gocoverweb="go test -covermode=count -coverpkg=./... -coverprofile /tmp/cover.out -v ./... && cat /tmp/cover.out | grep -v '.pb.go' > /tmp/cover.mod && go tool cover -html /tmp/cover.mod && rm /tmp/cover.out /tmp/cover.mod"
# Rust
export RUST_PATH="$HOME/.cargo/bin"
# Python
alias python=python3
# AWS
export AWSPATH="$HOME/.aws"
export AWS_SDK_LOAD_CONFIG=1
# GCP
[ -f '/Users/danielhess/google-cloud-sdk/path.zsh.inc' ] && source '/Users/danielhess/google-cloud-sdk/path.zsh.inc'
[ -f '/Users/danielhess/google-cloud-sdk/completion.zsh.inc' ] && source '/Users/danielhess/google-cloud-sdk/completion.zsh.inc'
if [ -f "~/.gcp/credentials.json" ]; then
export GCLOUD_KEYFILE_JSON=$(cat ~/.gcp/credentials.json)
export GOOGLE_CREDENTIALS="$HOME/.gcp/credentials.json"
export GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_CREDENTIALS
fi
# Docker
export DOCKER_DEV_VOLS="-v $HOME/.ssh:/home/dan9186/.ssh -v $HOME/.ionchannel:/home/dan9186/.ionchannel -v $GOPATH/src:/gopath/src"
export DOCKER_DEV_ENVS=""
export DOCKER_DEV="$DOCKER_DEV_VOLS $DOCKER_DEV_ENVS"
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$HOMEBREW_PREFIX/opt/nvm/nvm.sh" ] && \. "$HOMEBREW_PREFIX/opt/nvm/nvm.sh"
# RVM
export RVM_PATH="$HOME/.rvm/bin"
# Java
export PATH="$HOMEBREW_PREFIX/opt/openjdk/bin:$PATH"
export CPPFLAGS="-I$HOMEBREW_PREFIX/opt/openjdk/include"
# PATH
export PATH="$GOBINPATH:$PATH"
export PATH="$PATH:$RVM_PATH"
export PATH="$PATH:$RUST_PATH"
export PATH="$PATH:$NODE_PATH"
# Private Env Secrets
if [ -f "$HOME/.private_env_secrets" ]; then
[ $(stat -f %A "$HOME/.private_env_secrets") != "600" ] && echo "Warning: permissions for .private_env_secrets is too permissive"
source "$HOME/.private_env_secrets"
fi
# Work Zprofile
[ -f "$HOME/.work_zprofile" ] && source "$HOME/.work_zprofile"
# vim: filetype=exports noexpandtab