Refactor alias management and improve bootstrap process for Zsh

This commit is contained in:
Peter Wood
2025-05-19 16:26:36 -04:00
parent 34260be460
commit b674c0a95b
5 changed files with 111 additions and 10 deletions

View File

@@ -75,4 +75,13 @@ chmod +x "$DOTFILES_DIR/setup/setup.sh"
# Run setup script
"$DOTFILES_DIR/setup/setup.sh"
echo -e "${GREEN}Bootstrap completed! Please restart your terminal for changes to take effect.${NC}"
# Source the aliases file if it exists to make aliases available in the current session
ZSH_CUSTOM="$HOME/.oh-my-zsh/custom"
ALIASES_FILE="$ZSH_CUSTOM/aliases.zsh"
if [ -f "$ALIASES_FILE" ]; then
echo -e "${YELLOW}Loading aliases into current session...${NC}"
source "$ALIASES_FILE"
fi
echo -e "${GREEN}Bootstrap completed! Your aliases have been set up.${NC}"
echo -e "${YELLOW}Tip: Run 'source ~/.zshrc' or start a new terminal session to use all zsh features.${NC}"