refactor(zshrc): zprofil migration

This commit is contained in:
2026-02-08 19:06:21 +02:00
parent 8fe626c3b3
commit a8e29a0ce7
2 changed files with 8 additions and 3 deletions

View File

@@ -1 +1,9 @@
# Define environment variables
export EDITOR="nvim"
export LANG="en_US.UTF-8"
# Set Zinit home directory early
export ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
# Path helper or custom PATH additions should go here
# export PATH="$PATH:/your/custom/bin"

3
.zshrc
View File

@@ -1,5 +1,4 @@
# Set the directory we want to store zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
source "${ZINIT_HOME}/zinit.zsh"
@@ -55,5 +54,3 @@ alias c='clear'
# Shell integrations
eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)"
export EDITOR=nvim