Something went wrong. Try again.
Dotfiles for my macos setup
Something went wrong. Try again.
1.3 kB · 55 lines
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#!/bin/bashSOURCE_DIR=$(chezmoi source-path). "$SOURCE_DIR/scripts/utils_install" && . "$SOURCE_DIR/scripts/utils"empty_macos_trash() { osascript <<'APPLESCRIPT'try tell application "Finder" to empty trashon error number -128 -- User canceled. Not fatal.end tryAPPLESCRIPT}execute "fish -c 'fish_update_completions'" "Update fish completions"execute "ai-update" "Update AI tools"execute "tv update-channels" "Update Television channels"execute "obsidian-update" "Update Obsidian plugins and themes"if command -v save-to-spotify >/dev/null 2>&1; then execute "save-to-spotify update" "Update save-to-spotify CLI"fiexecute "brew cleanup" "Cleanup brew"execute "nvim --headless -c 'autocmd User MasonUpdateAllComplete qall' -c 'MasonUpdateAll'" "Update Neovim Mason packages"ask_for_confirmation "📊 Do you want to update gcx Agent Skills?"if answer_is_yes; then gcx agent skills install --all --forcefiask_for_confirmation "Run Mole?"if answer_is_yes; then mo clean mo optimizefiexecute "backup do" "Backup"ask_for_confirmation "Empty macOS Trash?"if answer_is_yes; then empty_macos_trashfiask_for_confirmation "Do you want to restart your computer?"if answer_is_yes; then sudo shutdown -r nowfi