refactor: use ZSH_CUSTOM from .zshenv

This commit is contained in:
2026-06-21 15:45:19 +02:00
parent f9a883611b
commit ab84cae3bd
3 changed files with 19 additions and 33 deletions
+3 -29
View File
@@ -79,7 +79,8 @@ source_files=(
"$HOME/.env"
"$HOME/.nvm/nvm.sh"
"$HOME/.cargo/env"
"${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
"$HOME/.oh-my-zsh/oh-my-zsh.sh"
"$HOME/.p10k.zsh"
)
# Source zsh-compatible files (skip if missing, no warnings)
@@ -94,7 +95,7 @@ done
# Commands whose output should be eval'd (tool initializers, etc.)
eval_expressions=(
'pyenv init -'
'pyenv init --path'
)
for expr in "${eval_expressions[@]}"; do
@@ -102,33 +103,6 @@ for expr in "${eval_expressions[@]}"; do
done
# =============================================================================
# SHELL INITIALIZATION
# =============================================================================
# Oh My Zsh installation
export ZSH="$HOME/.oh-my-zsh"
# Set theme
ZSH_THEME="powerlevel10k/powerlevel10k"
# Enable plugins
plugins=(
git gh sudo ssh ruby rust python node rsync nvm rbenv pyenv
docker docker-compose zsh-autosuggestions zsh-syntax-highlighting
zsh-interactive-cd zsh-navigation-tools
)
# Add fpath custom completions
[[ -d "$HOME/.zsh/completions" ]] && fpath=("$HOME/.zsh/completions" $fpath)
# Load Oh My Zsh framework
[[ -f "$ZSH/oh-my-zsh.sh" ]] && source "$ZSH/oh-my-zsh.sh"
# Powerlevel10k configuration (must come after theme is set)
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
# =============================================================================
# SHELL OPTIONS
# =============================================================================