From c20c4f9f1710c9277eb09d5542420dbd189ad0ee Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Fri, 21 Oct 2022 09:50:17 +0200 Subject: [PATCH] feat: add script to backup/restore Homebrew installations --- zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zshrc b/zshrc index 54ea6f6..84cb411 100644 --- a/zshrc +++ b/zshrc @@ -111,6 +111,15 @@ function update () { sudo softwareupdate -i -a } +function homebrewBackup () { + cd ~/.dotfiles/ + brew bundle dump --describe -f +} + +function homebrewRestore () { + brew bundle --file ~/.dotfiles/Brewfile +} + # Encode images in Base64 encodeBase64() { uuencode -m $1 /dev/stdout | sed '1d' | sed '$d'