-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap-fedora.sh
51 lines (41 loc) · 1.58 KB
/
bootstrap-fedora.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
read -p "Proceed with updating package list and installing dependencies? (y/n): " choice
if [[ $choice == 'y' ]]; then
sudo dnf update -y
sudo dnf install -y curl git util-linux-user
fi
read -p "Proceed with installing chezmoi? (y/n): " choice
if [[ $choice == 'y' ]]; then
sh -c "$(curl -fsLS get.chezmoi.io/)" -- init --apply https://github.com/jamwil/dotfiles.git
fi
read -p "Proceed with installing Rust and Cargo? (y/n): " choice
if [[ $choice == 'y' ]]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
fi
read -p "Proceed with installing Atuin? (y/n): " choice
if [[ $choice == 'y' ]]; then
curl --proto '=https' --tlsv1.2 -LsSf https://setup.atuin.sh | sh
fi
read -p "Proceed with installing lsd? (y/n): " choice
if [[ $choice == 'y' ]]; then
sudo dnf install -y lsd
fi
read -p "Proceed with installing pyenv? (y/n): " choice
if [[ $choice == 'y' ]]; then
curl https://pyenv.run | bash
fi
read -p "Proceed with installing direnv (y/n): " choice
if [[ $choice == 'y' ]]; then
sudo dnf install -y direnv
fi
read -p "Proceed with cloning powerlevel10k into ~/powerlevel10k? (y/n): " choice
if [[ $choice == 'y' ]]; then
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
fi
read -p "Proceed with installing zsh? (y/n): " choice
if [[ $choice == 'y' ]]; then
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
sudo dnf install -y zsh
fi
echo "Installation complete. Launch zsh to test or change the default shell with chsh."