mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 01:26:46 +00:00
refactor(zshrc): zprofil migration
This commit is contained in:
@@ -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
3
.zshrc
@@ -1,5 +1,4 @@
|
|||||||
# Set the directory we want to store zinit and plugins
|
# 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 ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
||||||
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||||
source "${ZINIT_HOME}/zinit.zsh"
|
source "${ZINIT_HOME}/zinit.zsh"
|
||||||
@@ -55,5 +54,3 @@ alias c='clear'
|
|||||||
# Shell integrations
|
# Shell integrations
|
||||||
eval "$(fzf --zsh)"
|
eval "$(fzf --zsh)"
|
||||||
eval "$(zoxide init --cmd cd zsh)"
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
|
|
||||||
export EDITOR=nvim
|
|
||||||
|
|||||||
Reference in New Issue
Block a user