2024-01-21 18:54:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-01-21 17:22:26 +00:00
|
|
|
function install {
|
|
|
|
which $1 &> /dev/null
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "Installing: ${1}..."
|
|
|
|
if [ -z ${2} ]
|
|
|
|
then
|
|
|
|
brew install ${1}
|
|
|
|
else
|
|
|
|
brew install --cask ${1}
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "Already installed: ${1}"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-01-21 19:00:07 +00:00
|
|
|
cask_packages=("gimp" "thunderbird" "firefox" "zotero" "rectangle" "vlc" "iterm2" "inkscape" "obsidian" "blender" "mactex" "bitwarden" "visual-studio-code" "spotify")
|
|
|
|
other_packages=("neovim" "tmux" "docker" "docker-compose" "git" "curl" "zsh" "stow" "tree" "node" "universal-ctags")
|
2024-01-21 17:22:26 +00:00
|
|
|
|
|
|
|
brew update
|
|
|
|
|
|
|
|
for package in "${cask_packages}"
|
|
|
|
do
|
|
|
|
install ${package} "cask"
|
|
|
|
done
|
|
|
|
|
|
|
|
for package in "${other_packages}"
|
|
|
|
do
|
|
|
|
install ${package}
|
|
|
|
done
|