This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles.old/setup.sh

34 lines
No EOL
1.1 KiB
Bash
Executable file

#!/bin/bash
# starship
mkdir -p $HOME/.local/bin && curl -sS https://starship.rs/install.sh | sudo -E sh -s -- --yes --bin-dir $HOME/.local/bin
# pfetch
curl -L https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-gnu-x86_64.tar.gz | sudo tar -xvz -C /usr/local/bin/
# Go
sudo rm -rf /usr/local/go || sudo mkdir -p /usr/local/go && curl -L https://go.dev/dl/go1.20.5.linux-amd64.tar.gz | sudo tar -xvz -C /usr/local/
# dotnet
curl -L https://dot.net/v1/dotnet-install.sh | sudo bash -s -- --channel LTS --install-dir /usr/local/dotnet
curl -L https://dot.net/v1/dotnet-install.sh | sudo bash -s -- --channel STS --install-dir /usr/local/dotnet
if $(which dnf 2>&1 > /dev/null); then
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
sudo dnf install -y \
zoxide \
terraform \
fontawesome-fonts \
fontawesome5-free-fonts
fi
# Git
cp home/config/git/gitconfig ~/.gitconfig
# ZSH
cp home/zshrc ~/.zshrc
mkdir -p ~/.config/zsh
rsync -avz home/config/zsh/ ~/.config/zsh
# Starship
cp home/config/starship.toml ~/.config/