refactor: use ZSH_CUSTOM from .zshenv
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
# Set custom zsh directory
|
||||||
|
ZSH_CUSTOM="$HOME/.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
|
||||||
|
)
|
||||||
|
|||||||
@@ -70,24 +70,6 @@ for path_dir in "${path_extensions[@]}"; do
|
|||||||
done
|
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
|
# EVAL EXPRESSIONS
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
@@ -103,30 +85,22 @@ done
|
|||||||
|
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# SHELL INITIALIZATION
|
# CONFIGURATION FILES TO SOURCE
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
# Oh My Zsh installation
|
# Define files to source in an array for easy management
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
source_files=(
|
||||||
|
"$HOME/.env"
|
||||||
# Set theme
|
"$HOME/.nvm/nvm.sh"
|
||||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
"$HOME/.cargo/env"
|
||||||
|
"$HOME/.oh-my-zsh/oh-my-zsh.sh"
|
||||||
# Enable plugins
|
"$HOME/.p10k.zsh"
|
||||||
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
|
# Source zsh-compatible files (skip if missing, no warnings)
|
||||||
[[ -d "$HOME/.zsh/completions" ]] && fpath=("$HOME/.zsh/completions" $fpath)
|
for config_file in "${source_files[@]}"; do
|
||||||
|
source_file "$config_file"
|
||||||
# Load Oh My Zsh framework
|
done
|
||||||
[[ -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
|
|
||||||
|
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|||||||
@@ -46,13 +46,13 @@ references:
|
|||||||
- url: https://github.com/ohmyzsh/ohmyzsh.git
|
- url: https://github.com/ohmyzsh/ohmyzsh.git
|
||||||
into: .oh-my-zsh
|
into: .oh-my-zsh
|
||||||
- url: https://github.com/romkatv/powerlevel10k.git
|
- url: https://github.com/romkatv/powerlevel10k.git
|
||||||
into: .oh-my-zsh/custom/themes/powerlevel10k
|
into: .zsh/themes/powerlevel10k
|
||||||
- url: https://github.com/marlonrichert/zsh-autocomplete.git
|
- url: https://github.com/marlonrichert/zsh-autocomplete.git
|
||||||
into: .oh-my-zsh/custom/plugins/zsh-autocomplete
|
into: .zsh/plugins/zsh-autocomplete
|
||||||
- url: https://github.com/zsh-users/zsh-autosuggestions.git
|
- url: https://github.com/zsh-users/zsh-autosuggestions.git
|
||||||
into: .oh-my-zsh/custom/plugins/zsh-autosuggestions
|
into: .zsh/plugins/zsh-autosuggestions
|
||||||
- url: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
- url: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
into: .oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
into: .zsh/plugins/zsh-syntax-highlighting
|
||||||
scripts:
|
scripts:
|
||||||
debian/update: sudo sed -i 's/main non-free-firmware/main contrib non-free non-free-firmware/g' /etc/apt/sources.list && sudo apt update
|
debian/update: sudo sed -i 's/main non-free-firmware/main contrib non-free non-free-firmware/g' /etc/apt/sources.list && sudo apt update
|
||||||
debian/install: sudo apt install curl wget zsh fzf davfs2 make imagemagick rsvg-convert ffmpeg yt-dlp pkg-config zstd libffi-dev zlib1g-dev libyaml-dev libssl-dev liblzma-dev libbz2-dev libncurses-dev libreadline-dev libsqlite3-dev python3-tk tk-dev unzip zip
|
debian/install: sudo apt install curl wget zsh fzf davfs2 make imagemagick rsvg-convert ffmpeg yt-dlp pkg-config zstd libffi-dev zlib1g-dev libyaml-dev libssl-dev liblzma-dev libbz2-dev libncurses-dev libreadline-dev libsqlite3-dev python3-tk tk-dev unzip zip
|
||||||
|
|||||||
Reference in New Issue
Block a user