cd ~ && git clone https://github.com/gvangool/dotfiles.git && mv dotfiles/.git . && git reset --hard && git submodule update --init --recursive
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Run brew doctor
to check that everything is as expected
(/usr/local/share/zsh
was not writeable for current user on Big Sur).
Sign into App Store (before running the rest of the Homebrew commands).
Run brew bundle
, this will install cli tooling, dmg's and Mac Store apps
(from Brewfile
).
- Keyboard > Modifier Keys > Caps lock (map to Escape)
- Text:
- Disable "Correct spelling automatically"
- Disable "Capitalize words automatically"
- Disable "Add period with double-space"
- Disable "Use smart quotes and dashes"
- Shortcuts > Spotlight (disable or remap, want to use cmd + space for Alfred)
Install extra packages:
sudo dnf install -y epel-release sudo dnf install -y vim zsh git mtr bind-utils wget curl htop tar bzip2 gzip xz sudo dnf install -y util-linux-user glibc-langpack-en sudo chsh -s $(which zsh) ${USERNAME:-root}
Install pyenv:
curl https://pyenv.run | bash sudo dnf install -y \ make gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel \ openssl-devel tk-devel libffi-devel xz-devel libuuid-devel
Install GitHub CLI:
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo sudo dnf install -y gh
Install Tailscale and mark it as a trusted interface:
firewall-cmd --add-interface=tailscale0 --zone=trusted
Install base packages:
sudo yum install -y git zsh util-linux-user
Switch to zsh:
sudo chsh -s $(which zsh) ec2-user
Install extra packages:
sudo apt update sudo apt install -y vim git curl zsh bind9-utils htop tar bzip2 gzip xz-utils zstd sudo apt install -y mtr-tiny # mtr exists in Debian but not Ubuntu?
Switch to zsh:
chsh -s $(which zsh)
Extra Python (pyenv):
curl https://pyenv.run | bash # Build environment sudo apt install -y \ build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev curl llvm \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Run
brew doctor
to check that everything is as expected.Run
brew bundle install --file=Brewfile.linux
, this will install cli tooling (fromBrewfile.linux
).
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
cargo install watchexec-cli ripgrep fd-find sd
cargo install just rage xh
cargo install github-workflows-update cargo-update
cargo install tfdoc --git https://github.com/gvangool/tfdoc --branch bin-name
cargo install --git https://github.com/ogham/dog dog
Getting the dependencies installed.
cd ~/src
git clone https://github.com/alacritty/alacritty.git
cd alacritty
cargo build --release
After installing a recent Python (pyenv install 3.10
), you should also
install pipx
pyenv exec python -m pip install pipx
pipx install aws-shell black httpie isort pip-tools pyupgrade