mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
refactor(fish): create separate backups for work and home
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
function homebrewBackup --description "Create a snapshot of all currently installed Homebrew, Cask, Mac App Store, and WhaleBrew installations"
|
||||
cd ~/.dotfiles/
|
||||
brew bundle dump --describe -f
|
||||
switch $hostname
|
||||
case mac-mini
|
||||
brew bundle dump --force --describe --file=~/.dotfiles/Brewfile
|
||||
case '*'
|
||||
brew bundle dump --force --describe --file=~/.dotfiles/Brewfile-Work
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user