refactor(fish): create separate backups for work and home

This commit is contained in:
Stefan Imhoff
2023-11-01 10:46:49 +01:00
parent aadb07721f
commit 66b181cd55
2 changed files with 12 additions and 3 deletions

View File

@@ -1,4 +1,8 @@
function homebrewBackup --description "Create a snapshot of all currently installed Homebrew, Cask, Mac App Store, and WhaleBrew installations" function homebrewBackup --description "Create a snapshot of all currently installed Homebrew, Cask, Mac App Store, and WhaleBrew installations"
cd ~/.dotfiles/ switch $hostname
brew bundle dump --describe -f case mac-mini
brew bundle dump --force --describe --file=~/.dotfiles/Brewfile
case '*'
brew bundle dump --force --describe --file=~/.dotfiles/Brewfile-Work
end
end end

View File

@@ -1,3 +1,8 @@
function homebrewRestore --description "Install all Homebrew, Cask, Mac App Store, and WhaleBrew applications from a snapshot" function homebrewRestore --description "Install all Homebrew, Cask, Mac App Store, and WhaleBrew applications from a snapshot"
brew bundle --file ~/.dotfiles/Brewfile switch $hostname
case mac-mini
brew bundle --file ~/.dotfiles/Brewfile
case '*'
brew bundle --file ~/.dotfiles/Brewfile-Work
end
end end