feat(zinit): integrate zinit for improved shell configuration #1

Merged
vokhactri merged 17 commits from feat/zinit into main 2025-04-18 20:50:42 +07:00
4 changed files with 21 additions and 3 deletions
Showing only changes of commit 833ef8f70e - Show all commits

No files matched your search

+2 -1
View File
@@ -24,7 +24,7 @@ zinit as"command" wait lucid light-mode from"gh-r" for \
extract"!" lsd-rs/lsd \
extract"!" zyedidia/micro \
extract"!" cp"autocomplete/bat.zsh -> _bat" @sharkdp/bat \
extract"!" atclone="cp usr/bin/fastfetch .; rm -rf usr" \
extract"!" atclone="cp usr/bin/fastfetch .; rm -rf usr" atpull"%atclone" \
fastfetch-cli/fastfetch \
atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" \
ajeetdsouza/zoxide \
@@ -36,3 +36,4 @@ zinit as"command" wait lucid light-mode from"gh-r" for \
source $ZDOTDIR/exports.zsh
source $ZDOTDIR/aliases.zsh
source $ZDOTDIR/options.zsh
source $ZDOTDIR/bin.zsh
+4 -2
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env zsh
alias cat="bat"
alias ls="lsd"
alias cat=bat
alias ls=lsd
alias nano=micro
alias fetch=fastfetch
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env zsh
export LOCAL_BIN="$HOME/.local/bin"
if ! [ -d "$LOCAL_BIN" ]; then
mkdir -p "$LOCAL_BIN"
fi
case ":$PATH:" in
*":$LOCAL_BIN:"*) ;;
*) export PATH="$LOCAL_BIN:$PATH" ;;
esac
+5
View File
@@ -3,4 +3,9 @@
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"
# not to use aliases: zi or zini
declare -A ZINIT
export ZINIT[NO_ALIASES]=1
source "${ZINIT_HOME}/zinit.zsh"