add git config and zsh configs (using zim)
This commit is contained in:
parent
87f414ba2c
commit
f52056a747
6 changed files with 192 additions and 0 deletions
17
.config/zsh/config.d/00-zim
Normal file
17
.config/zsh/config.d/00-zim
Normal file
|
@ -0,0 +1,17 @@
|
|||
#:vim set ft=zsh:
|
||||
zstyle ':zim:zmodule' use 'degit'
|
||||
ZIM_HOME=${XDG_CACHE_DIR}/zim
|
||||
|
||||
# Download zimfw plugin manager if missing.
|
||||
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then
|
||||
curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \
|
||||
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
|
||||
fi
|
||||
|
||||
# Install missing modules, and update ${ZIM_HOME}/init.zsh if missing or outdated.
|
||||
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
|
||||
source ${ZIM_HOME}/zimfw.zsh init -q
|
||||
fi
|
||||
|
||||
# Initialize modules
|
||||
source ${ZIM_HOME}/init.zsh
|
Loading…
Add table
Add a link
Reference in a new issue