Last active
June 4, 2021 05:13
-
-
Save adikari/be5cc377f7210b84b75c2dbf34ef4c66 to your computer and use it in GitHub Desktop.
Bootstrap my mac osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install homebrew if not already installed | |
if ! type "brew" > /dev/null 2>&1; then | |
echo "installing homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
fi | |
echo "updating brew..." | |
brew update | |
binaries=( | |
bash | |
ctags | |
fortune | |
git | |
gist | |
gh | |
lua | |
openssl | |
readline | |
tmux | |
nvim | |
rust | |
) | |
# install binaries | |
echo "installing binaries..." | |
brew install ${binaries[@]} | |
casks=( | |
cmake | |
iterm2 | |
osxfuse | |
vlc | |
1password | |
brave-browser | |
docker | |
) | |
# install applications | |
echo "installing applications..." | |
brew install --cask ${casks[@]} | |
echo "tapping cask fonts" | |
brew tap homebrew/cask-fonts | |
fonts=( | |
font-m-plus | |
font-clear-sans | |
font-roboto | |
font-fantasque-sans-mono | |
) | |
# install fonts | |
echo "installing fonts..." | |
brew install ${fonts[@]} | |
echo "installing powerline fonts..." | |
currentdir=$(pwd) | |
cd /tmp | |
git clone https://github.com/powerline/fonts.git && cd fonts | |
chmod +x install.sh | |
./install.sh | |
cd $currentdir | |
echo "cleaning up" | |
rm -rf /tmp/fonts | |
brew cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install homebrew if not already installed | |
if hash brew 2>/dev/null; then | |
else | |
echo "installing home brew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
echo "updating brew..." | |
#brew update | |
echo "tapping dupes" | |
brew tap homebrew/dupes | |
binaries=( | |
autoconf | |
bash | |
cabextract | |
cmake | |
composer | |
ctags | |
fortune | |
freetype | |
gd | |
gdbm | |
gettext | |
git | |
gmp | |
icu4c | |
imap-uw | |
jpeg | |
libevent | |
libpng | |
libxml2 | |
libyaml | |
lua | |
mcrypt | |
mhash | |
mutt | |
mysql | |
node | |
openssl | |
p7zip | |
pandoc | |
pandoc-citeproc | |
php55 | |
php55-mcrypt | |
php55-xdebug | |
phpctags | |
pkg-config | |
readline | |
ruby | |
sqlite | |
tmux | |
tokyo-cabinet | |
unixodbc | |
unrar | |
vim --with-lua --override-system-vim | |
wget | |
xz | |
zlib | |
) | |
echo "installing binaries..." | |
brew install ${binaries[@]} | |
# install cask applications | |
apps=( | |
alfred | |
android-file-transfer | |
dropbox | |
evernote | |
google-chrome | |
iterm2 | |
java | |
mendeley-desktop | |
osxfuse | |
sequel-pro | |
skype | |
spotify | |
sublime-text3 | |
utorrent | |
vagrant | |
viber | |
virtualbox | |
vlc | |
ynab | |
mactex | |
) | |
echo "installing applications..." | |
brew cask install ${apps[@]} | |
# install fonts | |
brew tap caskroom/fonts | |
fonts=( | |
font-m-plus | |
font-clear-sans | |
font-roboto | |
) | |
# install fonts | |
echo "installing fonts..." | |
brew cask install ${fonts[@]} | |
echo "installing powerline fonts..." | |
currentdir=$(pwd) | |
cd /tmp | |
git clone https://github.com/powerline/fonts.git && cd fonts | |
chmod +x install.sh | |
./install.sh | |
cd $currentdir | |
echo "cleaning up" | |
rm -rf /tmp/fonts | |
brew cleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment