Init-Files/install.sh
2023-06-12 15:14:21 +00:00

32 lines
979 B
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 apt update
sudo apt install -y wget fish java-common atop htop
# Change my shell to fish.
sudo chsh -s /usr/bin/fish $USER
# Install fish related stuff
/usr/bin/fish "./setup.fish"
# Make sure that the gitconfig that's on my computer links to my shared
# config.
git config --global include.path .gitconfig.shared
# Install blacken and prettier and some versions of python.
pip3 install --index-url=https://pypi.org/simple black
sudo npm install -g prettier
brew install python@3.9 python@3.10 python@3.11
curl -sSL https://install.python-poetry.org | python3 -