-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
45 lines (36 loc) · 965 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
41
42
43
44
export LANG=en_GB.UTF-8
# Without sourcing homebrew, we can't use any tools installed with Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)"
# Homebrew configuration
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_AUTO_UPDATE=1
# GPG Agent
GPG_TTY=$(tty)
export GPG_TTY
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
# Vim config
export EDITOR=nvim
alias vim="nvim"
alias vi="nvim"
alias v="nvim"
# Krew plugins
krew_bin="${KREW_ROOT:-$HOME/.krew}/bin"
if [ -d "$krew_bin" ] ; then
export PATH="$PATH:$krew_bin"
fi
# Cilium configuration
if [ -n "$(command -v cilium)" ]; then
export CILIUM_CLI_MODE="helm"
fi
# Go binaries built with `go install`
if [ -n "$(command -v go)" ]; then
export PATH="$PATH:$(go env GOPATH)/bin"
fi
# Rust toolchian from rustup
rust_bin="${HOME}/.cargo/bin"
if [ -d "$rust_bin" ]; then
export PATH="$PATH:$rust_bin"
fi