1
0

dotfiles maintenance in subshell

This commit is contained in:
Konstantin Demin 2021-03-21 22:14:40 +03:00
parent 32bd17a702
commit eeaa54993a
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

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
}