Add instructions and a single install script
This commit is contained in:
parent
5652b3f3ac
commit
8286bb1dbc
10 changed files with 40 additions and 34 deletions
8
README.md
Normal file
8
README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
## Instructions
|
||||
|
||||
Run these commands before installation:
|
||||
```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
|
||||
```
|
|
@ -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
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm -rf ~/Desktop ~/Documents ~/Downloads ~/Music ~/Pictures ~/Public ~/Templates ~/Videos
|
||||
xdg-user-dirs-update
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
pyenv install 3.13
|
||||
pyenv global 3.13
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo systemctl enable --now docker.service
|
||||
sudo usermod -aG docker $(whoami)
|
||||
reboot
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo usermod --shell /usr/bin/zsh $(whoami)
|
30
user-commands-after.bash
Normal file
30
user-commands-after.bash
Normal 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
|
|
@ -1,17 +1,13 @@
|
|||
bat
|
||||
dash
|
||||
docker
|
||||
docker-compose
|
||||
eza
|
||||
grub-customizer
|
||||
kitty
|
||||
neovim
|
||||
pyenv
|
||||
qmk
|
||||
starship
|
||||
tiny-xxd
|
||||
ttf-jetbrains-mono
|
||||
ttf-nerd-fonts-symbols-common
|
||||
vim
|
||||
xclip
|
||||
xsel
|
||||
zsh
|
|
@ -99,7 +99,7 @@ fi
|
|||
|
||||
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 ll="l -lbh --git --no-time"
|
||||
|
|
Loading…
Reference in a new issue