dotfiles/home/.zshrc
Marcus Noble c305a854eb
Fix path order
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2024-08-20 20:03:24 +01:00

37 lines
724 B
Bash

DISABLE_AUTO_UPDATE="true"
PATH_DIRS=(
"${HOME}/.bin"
"${KREW_ROOT:-${HOME}/.krew}/bin"
"${GOPATH:-${HOME}/goworkspace}/bin"
"${HOME}/.cargo/bin"
"/home/linuxbrew/.linuxbrew/bin"
"/opt/homebrew/bin/"
"${HOME}/Library/Python/3.11/bin"
"/usr/local/bin"
"/usr/bin"
"/bin"
"/usr/sbin"
"/sbin"
"${PATH}"
)
export PATH=${"${PATH_DIRS[*]}"// /:}
if [ ! -z ~/.additional_dotfiles/credentials ]; then
source ~/.additional_dotfiles/credentials
fi
for filename in ~/.dotfiles/*; do
source $filename
done
for filename in ~/.additional_dotfiles/*; do
source $filename
done
rm -f ~/.zcompdump; compinit
eval "$(starship init zsh)"
macchina --config ~/.macchina/config.toml --theme ~/.macchina/theme