feat: add script to backup/restore Homebrew installations

This commit is contained in:
Stefan Imhoff
2022-10-21 09:50:17 +02:00
parent 2a6ce604db
commit c20c4f9f17

9
zshrc
View File

@@ -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'