-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.zsh
More file actions
30 lines (24 loc) · 754 Bytes
/
Copy pathinit.zsh
File metadata and controls
30 lines (24 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Single entry point for ~/.zsh config
# Usage in .zshrc: source ~/.zsh/init.zsh
# Source profile for non-login shells (e.g. Terminal.app)
[[ -r "$HOME/.zprofile" ]] && source "$HOME/.zprofile"
export ZSH="${0:A:h}"
_zsh_load() {
local file="$1"
if [[ -r "$ZSH/$file" ]]; then
source "$ZSH/$file" || echo "Warning: failed to load $file" >&2
else
echo "Warning: $file not found" >&2
fi
}
_zsh_load "settings.zsh"
_zsh_load "keys.zsh"
_zsh_load "themes/.zsh_theme"
_zsh_load "functions/ai_functions.zsh"
_zsh_load "functions/functions.zsh"
_zsh_load "plugins/plugins.zsh"
# Initialize zoxide at the very end (recommended by zoxide)
if command -v zoxide >/dev/null 2>&1; then
eval "$(zoxide init zsh --cmd cd)"
fi
unset -f _zsh_load