refactor: use ZSH_CUSTOM from .zshenv

This commit is contained in:
valknar committed 2026-06-21 15:47:56 +02:00
1 parent f9a883611b
commit f192326d31
3 files changed
+28 -42

No files matched your search

+12 -38
View File
@@ -70,24 +70,6 @@ for path_dir in "${path_extensions[@]}"; do
done
# =============================================================================
# CONFIGURATION FILES TO SOURCE
# =============================================================================
# Define files to source in an array for easy management
source_files=(
"$HOME/.env"
"$HOME/.nvm/nvm.sh"
"$HOME/.cargo/env"
"${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
)
# Source zsh-compatible files (skip if missing, no warnings)
for config_file in "${source_files[@]}"; do
source_file "$config_file"
done
# =============================================================================
# EVAL EXPRESSIONS
# =============================================================================
@@ -103,30 +85,22 @@ done
# =============================================================================
# SHELL INITIALIZATION
# CONFIGURATION FILES TO SOURCE
# =============================================================================
# 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
# Define files to source in an array for easy management
source_files=(
"$HOME/.env"
"$HOME/.nvm/nvm.sh"
"$HOME/.cargo/env"
"$HOME/.oh-my-zsh/oh-my-zsh.sh"
"$HOME/.p10k.zsh"
)
# 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
# Source zsh-compatible files (skip if missing, no warnings)
for config_file in "${source_files[@]}"; do
source_file "$config_file"
done
# =============================================================================