dotfiles/home/dot_zshrc

45 lines
732 B
Text

# 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
PATH="$DOTFILES_DIR/bin:$PATH"
src=(
'base'
'function'
'path'
'env'
'prompt'
'alias'
'conda'
'plugins'
)
for dotfile in $src; do
. $DOTFILES_DIR/lib/$dotfile.zsh
done
unset dotfile
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
# welcome art
# ! is-tty && $DOTFILES_DIR/bin/print-epoch