fedora-silverblue-dotdiles/install.sh
2024-08-25 15:13:15 +09:00

61 lines
1.3 KiB
Bash
Executable File

#!/usr/bin/sh
dwnld() {
while true; do
read -p "Do you wish to install $1? " yn
case $yn in
[Yy]* ) $2; break;;
[Nn]* ) break;;
* ) echo "Please answer yes or no.";;
esac
done
}
rpm() {
rpm-ostree install $1
}
brw() {
brew install $1
}
flt() {
flatpak install flathub $1
}
# Layered Packages
wget https://raw.githubusercontent.com/trytomakeyouprivate/COPR-OSTree/main/copr -P ~/.local/bin/ &&\
chmod +x ~/.local/bin/copr
echo "Adding repos..."
copr enable varlad/helix
copr enable wezfurlong/wezterm-nightly
echo "Installing layered packages..."
dwnld "helix" "rpm helix"
dwnld "wezterm" "rpm wezterm"
dwnld "zsh" "rpm zsh"
dwnld "ocs-url" "rpm ./local-rpm/ocs-url-3.1.0-1.fc20.x86_64.rpm"
dwnld "mullvad" "rpm ./local-rom/MullvadVPN-2024.4._x86_64.rpm"
# Linuxbrew Packages
dwnld "gh" "brw gh"
dwnld "lazygit" "brw lazygit"
dwnld "onedrive" "brw onedrive"
dwnld "pandoc" "brw pandoc"
dwnld "starship" "brw starship"
dwnld "stow" "brw stow"
dwnld "thefuck" "brw thefuck"
dwnld "zoxide" "brw zoxide"
dwnld "spicetify" "brw spicetify"
dwnld "eza" "brw eza"
# Flatpaks
dwnld "ferdium" "flt org.ferdium.Ferdium"
dwnld "obsidian" "flt md.obsidian.Obsidian"
dwnld "spotify" "flt com.spotify.Client"
# Restart
echo "Restarting..."
systemctl restart