Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/dotfiles. my dotfiles (.vimrc, .bashrc, etc.)
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253#!/bin/bash
set -euo pipefailtest -z ${DEBUG:-} || set -xuname=$(uname -s | tr "[:upper:]" "[:lower:]")DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
if [[ $uname == linux ]]; then exit 0fi
# This script installs casks, i.e. macOS apps available in Homebrew but not in# the App Store.echo "Installing casks"
. $DOTFILES_DIR/functions.sh
# Save the `brew list` output so we don't have to call out to brew so muchbrewlist=$(brew list --casks)function cask() { # brew install on a cask installs even if alrady installed, so we'll skip # it ourselves if that's the case.
pkg_with_tap=$1 pkg=$(echo "$pkg_with_tap" | sed -e 's/.*\///') if [[ "$brewlist" != *"$pkg"* ]]; then casks="${casks:-}$pkg_with_tap " fi}
cask 1password # Password managercask discord # Chat appcask docker # Containerizationcask firefox # Browsercask font-hack-nerd-font # Nerd fontscask font-jetbrains-mono # JetBrains Mono fontcask font-source-code-pro # Source Code Pro font# cask google-chrome # Browsercask iterm2 # Terminal emulatorcask launchcontrol # App launcher# cask railwaycat/emacsmacport/emacs-mac # macOS-native Emacs UIcask sanesidebuttons # Make MOUSE4/MOUSE5 emulate a three-fingered swipecask scroll-reverser # Allow natural scrolling to apply to touchpads, but not mousescask stay # Restore window positions when displays changecask visual-studio-code # Code editorcask vlc # Video player
# Install all casks at once, to avoid the overhead of multiple invocationsif ! test -z "${casks:-}"; then # --cask forces casks when there are options for formulae (e.g. docker, syncthing) brew install --cask --force --quiet ${casks}fi