Last active
November 30, 2021 02:06
-
-
Save mikewaters/7dd03b96b27231581024fc7cbd675298 to your computer and use it in GitHub Desktop.
Provision a macbook for development
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
sudo scutil --set HostName some-muppet-name | |
# update the keyboard KeyRepeat and DelayUntilRepeat (this is annoying to script) | |
# install XCode in the app store | |
# add myself to sudoers | |
# mike ALL=(ALL) ALL | |
sudo visudo /private/etc/sudoers | |
# install brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# install brew packages: | |
# gnu variants of bsd utilities | |
brew install coreutils gnu-sed gawk gnu-tar findutils | |
# various cli utilities | |
brew install tree ack curl watch stow wget pwgen ssh-copy-id tmux | |
# various libraries | |
brew install cloc cscope cmake ctags readline | |
# programming languages | |
brew install python3 golang node | |
# editors | |
brew install neovim | |
# source control | |
brew install git tig | |
# network utils | |
brew install corkscrew nmap iperf | |
# databases | |
brew install redis sqlite | |
# python libs | |
brew install pygtk twine-pypi pyenv-virtualenvwrapper cookiecutter | |
# various tools | |
brew install graphviz qcachegrind youtube-dl jq | |
brew update | |
# update some python stuff | |
#pip2 install --upgrade pip setuptools. # fsck that, later python2! | |
pip3 install --upgrade pip setuptools wheel | |
pip3 install --user awscli cookiecutter | |
# install vim-plug: | |
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
nvim +PlugInstall +qall | |
# install dropbox (req'd for enpass) | |
# | |
# install enpass | |
# | |
# set up ssh keys | |
# | |
# copy over powerline fonts and install them | |
git clone https://github.com/powerline/fonts.git --depth=1 | |
cd fonts ; ./install.sh && cd .. ; rm -rf fonts | |
# install powerline terminal setup | |
go get -v -u github.com/mikewaters/powerline-go | |
# get my dotfiles and install them | |
mkdir src | |
pushd . | |
cd src | |
git clone [email protected]:mikewaters/dotfiles.git | |
cd dotfiles | |
make install | |
make dt | |
OR | |
make osx | |
make all | |
popd | |
# iterm2 keyboard changes | |
# this will get instantaneously loaded | |
wget \ | |
https://gist.githubusercontent.com/mikewaters/db1ffcceadc130996bf5a260ad5e7ece/raw/c5004e2773f5ba4ea0ba10f32464b287f8ddd862/iterm2-profile.plist \ | |
-O ~/Library/Application\ Support/iTerm2/DynamicProfiles/mike.plist | |
# alacritty, optional | |
brew install rust rustup-init | |
rustup-init -y | |
brew install --HEAD cema-sp/homebrew-tap/alacritty | |
# TODO: remap capslock as esc | |
echo "System Preferences -> Keyboard -> Modifier Keys" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment