install.fairie/home/.chezmoitemplates/universal/profile-inline
Brian Zalewski 36412a64ca Update 8 files
- /home/.chezmoitemplates/universal/profile-inline
- /home/.chezmoitemplates/universal/logg-inline
- /home/.chezmoitemplates/universal/logg-compat
- /home/.chezmoitemplates/universal/logg-before
- /home/.chezmoitemplates/universal/logg
- /home/.chezmoitemplates/universal/profile
- /home/.chezmoitemplates/universal/profile-before
- /home/.chezmoiscripts/_universal/run_before_01-add-temporary-includes.tmpl
2023-01-25 04:52:40 +00:00

31 lines
1.1 KiB
Bash

#!/usr/bin/env bash
### 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
if [ -d /home/linuxbrew/.linuxbrew/bin ]; then
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"
elif [ -f /opt/homebrew/bin/brew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [ -f /usr/local/bin/brew ]; then
eval "$(/usr/local/bin/brew shellenv)"
fi
### Ensure ~/.local/bin in PATH
export PATH="$HOME/.local/bin:$PATH"