-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zprofile
38 lines (31 loc) · 1.45 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
# If we are in WSL then configure Windows path variables.
if command -v powershell.exe > /dev/null ; then
export WINHOME=$(wslpath -u "$(powershell.exe '$env:Userprofile' | tr -d '\r')")
export APPDATA=$WINHOME/AppData/Roaming
export DESKTOP=$WINHOME/Desktop
export DOWNLOADS=$WINHOME/Downloads
# If Google Drive is mounted then set some more path variables.
if [[ -d "/mnt/g" ]] ; then
export GDRIVE="/mnt/g/My Drive"
export GBACKUPS="/mnt/g/My Drive/Backups"
fi
fi
# Source Homebrew shell configuration.
[[ -d "/opt/homebrew" ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
[[ -d "/home/linuxbrew/.linuxbrew" ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# If Bun is installed then add it to our PATH.
[[ -d "$HOME/.bun" ]] && export PATH="$HOME/.bun/bin:$PATH"
# If Volta is installed then add it to our PATH.
[[ -d "$HOME/.volta/bin" ]] && export PATH="$HOME/.volta/bin:$PATH"
# If cargo is installed then source its env file.
[[ -f "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"
# If there is a local bin directory then add it to our PATH.
[[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
# If Go is installed then add it to PATH.
[[ -d "/usr/local/go/bin" ]] && export PATH="$PATH:/usr/local/go/bin"
[[ -d "$HOME/go/bin" ]] && export PATH="$PATH:$HOME/go/bin"
export SSL_CERT_DIR=/etc/ssl/certs
export EDITOR="nvim"
export HOMEBREW_NO_ENV_HINTS=1
export DIRENV_LOG_FORMAT=