feat: enhance configuration with new aliases and local bin setup
This commit is contained in:
1 parent
70a2f649be
commit
833ef8f70e
4 files changed
+21
-3
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"
|
||||
Reference in new issue
Block a user