From 05b94b26d3e2253a64fc0b6be257161fae99c097 Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Sun, 28 Apr 2024 21:21:36 +0200 Subject: [PATCH] add untested restore function --- sync.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sync.zsh b/sync.zsh index 1e5b1b5..a961a52 100755 --- a/sync.zsh +++ b/sync.zsh @@ -24,6 +24,16 @@ sync() { echo "done." } +restore() { + # configs + cp -v "${DOTFILES_DIR}/.zshrc" "${HOME}/.zshrc" + cp -vr "${DOTFILES_DIR}/.config" "${HOME}/" + + # scripts + cp -vr "${DOTFILES_DIR}/.scripts" "${HOME}/" + echo "done." +} + clean() { # dirs rm -rfv "${DOTFILES_DIR}/.config" @@ -36,6 +46,8 @@ clean() { main() { if [[ "$1" == "clean" ]]; then clean + elif [[ "$1" == "restore" ]]; then + restore else sync fi -- libgit2 1.7.2