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

32 lines
995 B
Bash
Raw Normal View History

2023-06-15 19:57:11 +00:00
#!/bin/bash
# starship
2023-06-15 19:57:11 +00:00
mkdir -p $HOME/.local/bin && curl -sS https://starship.rs/install.sh | sudo -E sh -s -- --yes --bin-dir $HOME/.local/bin
# pfetch
2023-06-15 19:57:11 +00:00
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
2023-06-15 20:18:44 +00:00
if $(which dnf 2>&1 > /dev/null); then
sudo dnf install -y \
zoxide \
fontawesome-fonts \
fontawesome5-free-fonts
2023-06-15 20:18:44 +00:00
fi
# Git
cp home/config/git/gitconfig ~/.gitconfig
# ZSH
2023-06-15 19:57:11 +00:00
cp home/zshrc ~/.zshrc
mkdir -p ~/.config/zsh
rsync -avz home/config/zsh/ ~/.config/zsh
2023-06-15 19:57:11 +00:00
# Starship
cp home/config/starship.toml ~/.config/