-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
executable file
·49 lines (36 loc) · 1.06 KB
/
update.sh
File metadata and controls
executable file
·49 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
cd ~/.dotfiles
# include functions
source macos/functions
# update system
log_info "Get latest source files from Github"
git pull
# include functions, could be renewed
source macos/functions
# run dotbot install / config
log_info "Run dotbot to link config files"
sh dotbot-config/install-dotbot
# update Homebrew (Cask) & packages
log_info "Brew upgrades and installations"
brew_cleanup_all
brew_upgrade
brew_cask_upgrade
brew cleanup
brew doctor
# install new packages from the lists in brew.sh and brew-cask.sh
brew_install_missing
brew_cask_install_missing
# update vim plugins
cd ~/.vim_runtime
git pull --rebase
python update_plugins.py
# and update my brew and cask install file with latest list per user (separating work and private)
log_info "Update brew and cask install files"
brew list | sed 's/^/brew install /' > brew/brew-${USER}.sh
brew list --cask | sed 's/^/brew install --cask /' > brew/brew-cask-${USER}.sh
# update the mackup references
#mackup backup
# add, commit and push everything
log_info "Push everything back to Github"
git ca
git push