2023-01-24 20:52:40 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-01-24 20:31:32 -08:00
|
|
|
### Source .bashrc if it is present
|
|
|
|
if [ -f "$HOME/.bashrc" ]; then
|
|
|
|
. "$HOME/.bashrc"
|
|
|
|
elif [ -f "$HOME/.config/shell/exports.sh" ]; then
|
|
|
|
. "$HOME/.config/shell/exports.sh"
|
|
|
|
fi
|
|
|
|
|
|
|
|
### XDG
|
|
|
|
XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
XDG_DATA_DIR="$HOME/.local/share"
|
|
|
|
|
|
|
|
### Ensure Homebrew PATHs
|
2023-01-24 20:59:29 -08:00
|
|
|
if [ -d "/home/linuxbrew/.linuxbrew/bin" ]; then
|
2023-01-24 20:31:32 -08:00
|
|
|
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
|
|
|
|
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"
|
|
|
|
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew"
|
|
|
|
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}"
|
|
|
|
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
|
|
|
|
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
|
|
|
export WHALEBREW_INSTALL_PATH="/home/linuxbrew/.linuxbrew/whalebrew"
|
2023-01-24 20:59:29 -08:00
|
|
|
elif [ -f "/usr/local/bin/brew" ]; then
|
2023-01-24 20:31:32 -08:00
|
|
|
eval "$(/usr/local/bin/brew shellenv)"
|
2023-01-24 20:59:29 -08:00
|
|
|
elif [ -f "/opt/homebrew/bin/brew" ]; then
|
|
|
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
2023-01-24 20:31:32 -08:00
|
|
|
fi
|
|
|
|
|
2023-01-30 21:43:15 -08:00
|
|
|
### Volta
|
|
|
|
export VOLTA_HOME="$XDG_DATA_HOME/volta"
|
|
|
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
|
|
|
|
2023-01-24 20:31:32 -08:00
|
|
|
### Ensure ~/.local/bin in PATH
|
2023-01-24 20:52:40 -08:00
|
|
|
export PATH="$HOME/.local/bin:$PATH"
|