2021-12-08 09:38:24 -06:00
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[ -z "$PS1" ] && return
|
|
|
|
|
|
|
|
if [ -d "$HOME/.dotfiles" ]; then
|
|
|
|
DOTFILES_DIR="$HOME/.dotfiles"
|
|
|
|
else
|
|
|
|
echo "Unable to find dotfiles, exiting."
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Make utilities available
|
2022-04-21 08:25:37 -05:00
|
|
|
PATH="$DOTFILES_DIR/bin:$PATH"
|
2021-12-08 09:38:24 -06:00
|
|
|
|
2023-01-25 18:06:30 -06:00
|
|
|
src=(
|
|
|
|
'base'
|
|
|
|
'function'
|
|
|
|
'path'
|
|
|
|
'env'
|
|
|
|
'prompt'
|
|
|
|
'alias'
|
|
|
|
'conda'
|
|
|
|
'plugins'
|
|
|
|
)
|
|
|
|
|
|
|
|
for dotfile in $src; do
|
|
|
|
. $DOTFILES_DIR/lib/$dotfile.zsh
|
2021-12-08 09:38:24 -06:00
|
|
|
done
|
|
|
|
|
2023-01-25 18:06:30 -06:00
|
|
|
unset dotfile
|
2021-12-08 09:38:24 -06:00
|
|
|
|
|
|
|
DOTFILES_EXTRA_DIR="$HOME/.extra"
|
|
|
|
|
|
|
|
if [ -d "$DOTFILES_EXTRA_DIR" ]; then
|
|
|
|
for EXTRAFILE in "$DOTFILES_EXTRA_DIR"/runcom/*.sh; do
|
|
|
|
[ -f "$EXTRAFILE" ] && . "$EXTRAFILE"
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
unset EXTRAFILE
|
|
|
|
|
|
|
|
export DOTFILES_DIR DOTFILES_EXTRA_DIR
|
|
|
|
|
2022-06-04 11:50:57 -05:00
|
|
|
# welcome art
|
2023-01-18 12:41:06 -06:00
|
|
|
# ! is-tty && $DOTFILES_DIR/bin/print-epoch
|
2022-09-02 16:10:12 -05:00
|
|
|
|