Skip to content

Instantly share code, notes, and snippets.

@dtjm
Created August 16, 2023 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dtjm/bb12947bb607ec4ea9f3906fa255f221 to your computer and use it in GitHub Desktop.
Save dtjm/bb12947bb607ec4ea9f3906fa255f221 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euo pipefail
echo "-- installing homebrew"
if ! type "brew" > /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
if [[ ! -x /opt/homebrew/bin/zsh ]]; then
brew install zsh
echo "-- changing shell to zsh"
sudo sh -c "echo /opt/homebrew/bin/zsh >> /etc/shells"
chsh -s /opt/homebrew/bin/zsh
fi
if [[ ! -d ~/.oh-my-zsh ]]; then
echo "-- install oh-my-zsh"
curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh
fi
echo "-- installing homebrew packages"
brew install \
mas \
starship \
;
# homebrew/cask-drivers/fujitsu-scansnap-home
brew install --cask 1password \
dropbox \
goland \
iterm2 \
swish \
visual-studio-code \
homebrew/cask-fonts/font-jetbrains-mono \
shortcat \
;
mas install 1179623856 # Pastebot (2.2.1)
echo "-- installing PasteBot Paste Service"
curl -o ~/Downloads/PastebotServiceInstaller.zip https://tapbots.net/pastebot2/PastebotServiceInstaller.zip
pushd ~/Downloads
unzip PastebotServiceInstaller.zip
open "Pastebot Service Installer.app"
popd
rm ~/Downloads/PastebotServiceInstaller.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment