1
0

dotfiles maintenance in subshell

This commit is contained in:
2021-03-21 22:14:40 +03:00
parent 32bd17a702
commit eeaa54993a

View File

@@ -4,6 +4,13 @@ dotfiles-update() {
"${ZSHU[d_zdot]}/.config/dotfiles/install.sh"
}
dotfiles-git() { (
cd "${ZSHU[d_zdot]}/"
export GIT_DIR="${ZSHU[d_zdot]}/.config/dotfiles/repo.git"
export GIT_WORK_TREE="${ZSHU[d_zdot]}"
zsh -i
) }
z-update() {
dotfiles-update
}