mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
feat: add script to backup/restore Homebrew installations
This commit is contained in:
9
zshrc
9
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'
|
||||
|
||||
Reference in New Issue
Block a user