feat(zsh): added zsh config
This commit is contained in:
7
dot_config/zsh/dot_zshenv
Normal file
7
dot_config/zsh/dot_zshenv
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
if [ -z ${ENV} ]; then
|
||||||
|
export ENV="${HOME}/.env.d";
|
||||||
|
fi
|
||||||
|
|
||||||
|
for config in "${ENV}"/*.enabled(N); do
|
||||||
|
source "$config"
|
||||||
|
done
|
||||||
38
dot_config/zsh/dot_zshrc
Normal file
38
dot_config/zsh/dot_zshrc
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
### Added by Zinit's installer
|
||||||
|
if [[ ! -f $ZDOTDIR/.zinit/bin/zinit.zsh ]]; then
|
||||||
|
print -P "%F{33}▓▒░ %F{220}Installing DHARMA Initiative Plugin Manager (zdharma/zinit)…%f"
|
||||||
|
command mkdir -p "$ZDOTDIR/.zinit" && command chmod g-rwX "$ZDOTDIR/.zinit"
|
||||||
|
command git clone https://github.com/zdharma-continuum/zinit "$ZDOTDIR/.zinit/bin" && \
|
||||||
|
print -P "%F{33}▓▒░ %F{34}Installation successful.%f" || \
|
||||||
|
print -P "%F{160}▓▒░ The clone has failed.%f"
|
||||||
|
fi
|
||||||
|
source "$ZDOTDIR/.zinit/bin/zinit.zsh"
|
||||||
|
autoload -Uz _zinit
|
||||||
|
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||||
|
### End of Zinit installer's chunk
|
||||||
|
zinit ice wait"2" lucid as"program" pick"bin/git-dsf"
|
||||||
|
zinit light zdharma-continuum/zsh-diff-so-fancy
|
||||||
|
|
||||||
|
zinit ice wait"2" lucid as"program" pick"$ZPFX/bin/git-now" make"prefix=$ZPFX install"
|
||||||
|
zinit light iwata/git-now
|
||||||
|
|
||||||
|
zinit ice wait"2" lucid as"program" pick"$ZPFX/bin/git-alias" make"PREFIX=$ZPFX" nocompile
|
||||||
|
zinit light tj/git-extras
|
||||||
|
|
||||||
|
zinit ice wait"2" lucid as"program" atclone'perl Makefile.PL PREFIX=$ZPFX' atpull'%atclone' \
|
||||||
|
make'install' pick"$ZPFX/bin/git-cal"
|
||||||
|
zinit light k4rthik/git-cal
|
||||||
|
|
||||||
|
zinit light "supercrabtree/k"
|
||||||
|
|
||||||
|
zinit load atuinsh/atuin
|
||||||
|
|
||||||
|
zinit load "kevinywlui/zlong_alert.zsh"
|
||||||
|
|
||||||
|
ZSHRC_DIR="${ZDOTDIR:-$HOME/.config/zsh}/zshrc.d"
|
||||||
|
if [[ -d $ZSHRC_DIR ]]; then
|
||||||
|
for f in "${ZSHRC_DIR}/"*.enabled(N); do
|
||||||
|
[[ -f $f && -r $f ]] || continue
|
||||||
|
source "$f"
|
||||||
|
done
|
||||||
|
fi
|
||||||
1
dot_config/zsh/zshrc.d/starship.enabled
Normal file
1
dot_config/zsh/zshrc.d/starship.enabled
Normal file
@@ -0,0 +1 @@
|
|||||||
|
eval "$(starship init zsh)"
|
||||||
Reference in New Issue
Block a user