1
0
Fork 0
mirror of https://github.com/MillironX/dotfiles.git synced 2024-12-22 17:08:16 +00:00
dotfiles/dot_profile
Thomas A. Christensen II 0f2023f999
Switch to more portable zsh switching
Older versions of `which` apparantly are more verbose and list extra text
in addition to the path. Get rid of that nonsense

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
2021-10-20 07:56:22 -05:00

16 lines
404 B
Text

# shellcheck shell=sh
# User specific environment
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
# Linuxbrew setup
if [ -d $HOME/../linuxbrew/.linuxbrew ]; then
BREWPATH=$HOME/../linuxbrew/.linuxbrew
elif [ -d $HOME/.linuxbrew ]; then
BREWPATH=$HOME/.linuxbrew
fi
if [ -n "$BREWPATH" ]; then
eval "$($BREWPATH/bin/brew shellenv)"
export HOMEBREW_MAKE_JOBS=1
export HOMEBREW_NO_ANALYTICS=1
fi