Skip to content

Commit

Permalink
feat(macos): add termshot brew
Browse files Browse the repository at this point in the history
  • Loading branch information
trystan2k committed Oct 29, 2023
1 parent a573197 commit 0216d77
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/macos/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ cask "notion"
cask "overkill"
cask "raycast"
cask "shottr"
brew "homeport/tap/termshot"
cask "unclack"

## Dev
Expand Down
59 changes: 59 additions & 0 deletions upgrades/from-12.14.0-to-12-15-0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash

# Export dotfiles folder
DOTFILES_FOLDER="$(pwd | grep -o '.*dotfiles')"

#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/symlinks/.exports

# Load functions
#shellcheck source=/dev/null
source "$DOTFILES_FOLDER"/lib/functions

_remove() {
# ---------------------------------------------
# Uninstall not needed anymore
# ---------------------------------------------

info "Remove step"
brew uninstall --ignore-dependencies node
}

_add() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Add step"

info "Install termshot"
brew install homeport/tap/termshot
}

_configure() {
# ---------------------------------------------
# Install new tools
# ---------------------------------------------

info "Configure step"
}

_cleanup () {
# ---------------------------------------------
# Cleanup and finish
# ---------------------------------------------

info "Cleanup step"

#shellcheck source=/dev/null
. "$DOTFILES_FOLDER"/macos/cleanup.sh
}

execute() {
_remove
_add
_configure
_cleanup
}

execute 2>&1 | tee -a "$DOTFILE_LOG_FILE"

0 comments on commit 0216d77

Please sign in to comment.