-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.zsh
executable file
·34 lines (26 loc) · 963 Bytes
/
update.zsh
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
#!/bin/zsh
. ./.env
. ./.functions --source-only
update_mac_osx_software
update_homebrew
update_homebrew_bundle
update_git_config
update_config_file .ssh_config ~/.ssh/config
SOURCE_ZSH=0
update_config_file .zprofile ~/.zprofile && SOURCE_ZSH=1
update_config_file .aliases ~/.aliases && SOURCE_ZSH=1
update_config_file .zshrc ~/.zshrc && SOURCE_ZSH=1
update_config_file powerline_config ~/.config/powerline && . /opt/homebrew/lib/python3.9/site-packages/powerline/bindings/zsh/powerline.zsh
if update_config_file gpg-agent.conf ~/.gnupg/gpg-agent.conf; then
restart_gpg_agent
fi
update_config_file vscode/vscode_settings.json "${HOME}/Library/Application Support/Code/User/settings.json"
update_vscode_exts
upgrade_node
upgrade_ruby
upgrade_terraform
log_ok "🎉 Update complete!"
if [ "$SOURCE_ZSH" = '1' ]; then
echo "source ~/.zshrc" | pbcopy
log_warn "⚠️ Please run 'source ~/.zshrc' (copied to clipboard) to load recent changes"
fi