mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 00:00:13 -08:00
Refactor alias management and improve bootstrap process for Zsh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user