index : dotfiles.git

ascending towards madness

Diff

 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