1
Fork 0

Add instructions and a single install script

This commit is contained in:
Hadeed 2024-11-17 12:19:13 +05:00
parent 5652b3f3ac
commit 66fd7eea72
10 changed files with 40 additions and 34 deletions

8
README.md Normal file
View file

@ -0,0 +1,8 @@
## Instructions
Run these commands:
```sh
curl -fsSL -o ~/user_pkglist.txt https://git.hadeedahmad.com/hadeed/dots/raw/branch/main/user_pkglist.txt
curl -fsSL -o ~/user-commands-after.bash https://git.hadeedahmad.com/hadeed/dots/raw/branch/main/user-commands-after.bash
chmod +x ~/user-commands-after.bash
```

View file

@ -1,9 +0,0 @@
#!/bin/sh
mkdir -p ~/docs/repos
cd docs/repos
git clone https://git.hadeedahmad.com/hadeed/dots
cd dots
python bin/stow.py

View file

@ -1,3 +0,0 @@
#!/bin/sh
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers

View file

@ -1,4 +0,0 @@
#!/bin/sh
rm -rf ~/Desktop ~/Documents ~/Downloads ~/Music ~/Pictures ~/Public ~/Templates ~/Videos
xdg-user-dirs-update

View file

@ -1,4 +0,0 @@
#!/bin/sh
pyenv install 3.13
pyenv global 3.13

View file

@ -1,5 +0,0 @@
#!/bin/sh
sudo systemctl enable --now docker.service
sudo usermod -aG docker $(whoami)
reboot

View file

@ -1,3 +0,0 @@
#!/bin/sh
sudo usermod --shell /usr/bin/zsh $(whoami)

30
user-commands-after.bash Normal file
View file

@ -0,0 +1,30 @@
#!/bin/bash
USER=$1
USER_HOME=$(getent passwd "$USER" | cut -d: -f6)
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" | EDITOR='tee -a' visudo
systemctl enable --now docker.service
usermod -aG docker "$USER"
usermod --shell /usr/bin/zsh "$USER"
su - "$USER" <<EOF
mkdir -p "$USER_HOME/docs/repos"
cd "$USER_HOME/docs/repos"
git clone https://git.hadeedahmad.com/hadeed/dots
cd dots
python bin/stow.py
EOF
cd "$USER_HOME"
rm -rf Desktop Documents Downloads Music Pictures Public Templates Videos
su - "$USER" -c "xdg-user-dirs-update"
su - "$USER" <<EOF
pyenv install 3.13
pyenv global 3.13
EOF

View file

@ -1,17 +1,13 @@
bat bat
dash
docker docker
docker-compose docker-compose
eza eza
grub-customizer
kitty kitty
neovim neovim
pyenv pyenv
qmk
starship starship
tiny-xxd
ttf-jetbrains-mono ttf-jetbrains-mono
ttf-nerd-fonts-symbols-common ttf-nerd-fonts-symbols-common
vim
xclip
xsel xsel
zsh zsh

View file

@ -99,7 +99,7 @@ fi
alias vi="nvim" alias vi="nvim"
alias l="eza -x --group-directories-first --icons" alias l="eza -x --group-directories-first --icons always"
alias la="l -a" alias la="l -a"
alias ll="l -lbh --git --no-time" alias ll="l -lbh --git --no-time"