#!/bin/bash # # This is my dotfiles setup script. It is invoked by coder.com instances. # We have this shared part of the setup, in setup.py, so let's run that first. set -ex MY_PATH=$(dirname "$0") cd $MY_PATH # Run the basic setup. python3 "./setup.py" # # Un-minimize this installation sudo python3 "./unminimize.py" # # OK this stuff here is better in bash, and also is specific to setting up # # coder.com instances, so. Add packages that I want in my coder image. sudo apt update sudo apt install -y wget fish java-common # Change my shell to fish. sudo chsh -s /usr/bin/fish $USER # Make sure that the gitconfig that's on my computer links to my shared # config. git config --global include.path .gitconfig.shared # Install local rust so I have rustfmt at the very least. # (This should be in the image I think.) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # Install bazelisk # wget https://github.com/bazelbuild/bazelisk/releases/download/v1.12.0/bazelisk-linux-amd64 # mv ./bazelisk-linux-amd64 ~/bin/bazelisk # chmod a+x ~/bin/bazelisk