61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
# vim: filetype=zsh
|
|
|
|
# env
|
|
export EDITOR=nvim
|
|
export GOPATH=~/src/golang
|
|
export GOBIN=$GOPATH/bin
|
|
export PATH=~/bin:$GOBIN:$PATH
|
|
export XDG_CONFIG_HOME=$HOME/.config
|
|
export TALOSCONFIG=$XDG_CONFIG_HOME/talos/config.yaml
|
|
export GNUPGHOME=$XDG_CONFIG_HOME/gnupg
|
|
export TERM=ansi
|
|
kubeconfig=(
|
|
$XDG_CONFIG_HOME/kube/k8s-dev.yaml
|
|
$XDG_CONFIG_HOME/kube/k8s.yaml
|
|
$XDG_CONFIG_HOME/kube/k8s-old.yaml
|
|
$XDG_CONFIG_HOME/kube/gke.yaml
|
|
)
|
|
export KUBECONFIG=${(j.:.)kubeconfig}
|
|
|
|
# rust additions
|
|
if [[ -a "$HOME/.cargo/bin" ]]; then
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
fi
|
|
|
|
# go additions
|
|
if [[ -d "/usr/local/go/bin" ]]; then
|
|
export PATH="/usr/local/go/bin:$PATH"
|
|
fi
|
|
|
|
# krew additions
|
|
if [[ -a "$HOME/.krew" ]]; then
|
|
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
|
|
fi
|
|
|
|
# pythonpath additions
|
|
if [[ -a "$HOME/src/oreilly/tools/chassis" ]]; then
|
|
export PYTHONPATH="${PYTHONPATH}:$HOME/src/oreilly/tools/chassis"
|
|
fi
|
|
|
|
# Android SDK additions
|
|
if [[ -a "$HOME/Library/Android/sdk/platform-tools" ]]; then
|
|
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
|
|
fi
|
|
|
|
if [[ -a "$HOME/Library/Android/sdk/emulator" ]]; then
|
|
export PATH="$HOME/Library/Android/sdk/emulator:$PATH"
|
|
fi
|
|
|
|
# Local bin additions
|
|
if [[ -d "$HOME/bin" ]]; then
|
|
export PATH="$HOME/bin:$PATH"
|
|
fi
|
|
|
|
# asdf
|
|
if [[ -d "$HOME/.asdf/shims" ]]; then
|
|
export PATH="$HOME/.asdf/shims:$PATH"
|
|
fi
|
|
if [[ -d "/opt/homebrew/share/google-cloud-sdk/bin" ]]; then
|
|
export PATH=/opt/homebrew/share/google-cloud-sdk/bin:$PATH
|
|
fi
|