-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshenv.tmpl
55 lines (49 loc) · 1.85 KB
/
dot_zshenv.tmpl
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
#! /usr/bin/env zsh
# ignore run commands in /etc
setopt no_global_rcs
################################################################################
# XDG Support
################################################################################
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state"
export XDG_RUNTIME_DIR="${HOME}/tmp"
################################################################################
# Core Env Settings
################################################################################
export AWS_SHARED_CREDENTIALS_FILE="${XDG_CONFIG_HOME}/aws/credentials"
export AWS_CONFIG_FILE="${XDG_CONFIG_HOME}/aws/config"
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
export HOMEBREW_BUNDLE_FILE="${XDG_CONFIG_HOME}/homebrew-bundle/Brewfile"
export PSQLRC="${XDG_CONFIG_HOME}/pg/psqlrc"
export PGPASSFILE="${XDG_CONFIG_HOME}/pg/pgpass"
# export PGSERVICEFILE="${XDG_CONFIG_HOME}/pg/pg_service.conf"
export PSQL_HISTORY="${XDG_DATA_HOME}/pg/history"
export TF_CLI_CONFIG_FILE=${XDG_CONFIG_HOME}/terraform
export GOPATH="${HOME}/Develop/go"
export GOBIN="${GOPATH}/bin"
export RDEI_TOKEN="{{ (onepasswordDetailsFields "RDEI Token").credential.value }}"
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
# path
typeset -U path
path=${HOME}/bin
for f in \
(brew --prefix coreutils)/libexec/gnubin \
(brew --prefix make)/libexec/gnubin \
(brew --prefix make) \
$GOPATH/bin \
$XDG_DATA_HOME/npm/bin \
/Library/TeX/Distributions/Programs/texbin
/usr/local/bin \
/usr/local/sbin \
/usr/bin \
/usr/sbin \
/bin \
/sbin
do
[[ -d ${f} ]] && path+=(${f})
done
################################################################################
# Private Tokens
################################################################################