Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/dotfiles. my dotfiles (.vimrc, .bashrc, etc.)
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263#!/bin/bash
set -euo pipefailtest -z ${DEBUG:-} || set -xuname=$(uname -s | tr "[:upper:]" "[:lower:]")DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
if [[ $uname != darwin ]]; then exit 0fi
macosversion=$(sw_vers -productVersion | cut -d. -f1)
# This script installs macOS apps from the app store. Note that because of App# Store API limitations, this script can only install apps that have previously# been installed by the current user's Apple ID.echo "Installing App Store apps"
. $DOTFILES_DIR/functions.sh
install_now mas # macOS App Store CLI
list=$(mas list)appids_to_install=""function app() { # mas install installs the app even if it is already installed, so we'll # skip those manually here. app_id=$1 if [[ "$list" != *"$app_id"* ]]; then appids_to_install="$appids_to_install$app_id " fi}
app 409183694 # Keynoteapp 409201541 # Pagesapp 409203825 # Numbersapp 409907375 # Apple Remote Desktopapp 411643860 # DaisyDiskapp 424389933 # Final Cut Proapp 497799835 # Xcodeapp 668208984 # GIPHY Captureapp 747648890 # Telegramapp 775737590 # iA Writerapp 920404675 # Monodrawapp 1046095491 # Freeze - for Amazon Glacierapp 1085114709 # Parallels Desktopapp 1118136179 # AutoMuteapp 1147396723 # WhatsApp Desktopapp 1233861775 # Acornapp 1246969117 # Steam Linkapp 1475387142 # Tailscaleapp 1478821913 # GoLinks for Safariapp 1480068668 # Messengerapp 1480933944 # Vimariapp 1507890049 # Pixeurapp 1518425043 # Boopapp 1534275760 # LanguageToolapp 1569813296 # 1Password for Safari
if ! test -z "${appids_to_install:-}"; then mas install $appids_to_installfi