add git config and zsh configs (using zim)

This commit is contained in:
Mark Riedesel 2024-06-12 09:27:32 -05:00
parent 87f414ba2c
commit f52056a747
6 changed files with 192 additions and 0 deletions

View 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

View file

@ -0,0 +1 @@
alias dots="$(~/bin/dotfiles alias)"