Init-Files/install.sh
2022-06-17 16:22:23 -07:00

36 lines
1.1 KiB
Bash
Executable file

#!/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"
# 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 add-apt-repository ppa:kelleyk/emacs -y
sudo apt-get update
sudo apt-get install -y fish emacs-nox tmux gh
# NOTE: THIS NEEDS TO BE INSTALLED IN THE BASE IMAGE OR CLANG DON'T RUN
sudo apt-get install -y libtinfo5
# 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