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

@@ -76,8 +76,15 @@ eval "$(zoxide init zsh)"
# For a full list of active aliases, run `alias`.
# Load custom aliases
# Define ZSH_CUSTOM if not already defined
if [ -z "$ZSH_CUSTOM" ]; then
ZSH_CUSTOM="$HOME/.oh-my-zsh/custom"
fi
if [ -f "$ZSH_CUSTOM/aliases.zsh" ]; then
source "$ZSH_CUSTOM/aliases.zsh"
elif [ -f "$HOME/.oh-my-zsh/custom/aliases.zsh" ]; then
source "$HOME/.oh-my-zsh/custom/aliases.zsh"
fi
# set directory to home