From 5652b3f3acda865080fde351b22456b46e42cf3c Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Sun, 17 Nov 2024 01:36:05 +0500 Subject: [PATCH] Add some scripts --- install-scripts/01-dots.sh | 9 +++++++++ install-scripts/02-sudo.sh | 3 +++ install-scripts/03-dirs.sh | 4 ++++ install-scripts/04-pyenv.sh | 4 ++++ install-scripts/05-docker.sh | 5 +++++ install-scripts/06-zsh.sh | 3 +++ packages.txt | 17 +++++++++++++++++ 7 files changed, 45 insertions(+) create mode 100755 install-scripts/01-dots.sh create mode 100755 install-scripts/02-sudo.sh create mode 100755 install-scripts/03-dirs.sh create mode 100755 install-scripts/04-pyenv.sh create mode 100755 install-scripts/05-docker.sh create mode 100755 install-scripts/06-zsh.sh create mode 100644 packages.txt diff --git a/install-scripts/01-dots.sh b/install-scripts/01-dots.sh new file mode 100755 index 0000000..a04ea76 --- /dev/null +++ b/install-scripts/01-dots.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +mkdir -p ~/docs/repos +cd docs/repos + +git clone https://git.hadeedahmad.com/hadeed/dots +cd dots + +python bin/stow.py diff --git a/install-scripts/02-sudo.sh b/install-scripts/02-sudo.sh new file mode 100755 index 0000000..5dc2e66 --- /dev/null +++ b/install-scripts/02-sudo.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers diff --git a/install-scripts/03-dirs.sh b/install-scripts/03-dirs.sh new file mode 100755 index 0000000..b3c13fe --- /dev/null +++ b/install-scripts/03-dirs.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +rm -rf ~/Desktop ~/Documents ~/Downloads ~/Music ~/Pictures ~/Public ~/Templates ~/Videos +xdg-user-dirs-update diff --git a/install-scripts/04-pyenv.sh b/install-scripts/04-pyenv.sh new file mode 100755 index 0000000..da3dc40 --- /dev/null +++ b/install-scripts/04-pyenv.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +pyenv install 3.13 +pyenv global 3.13 diff --git a/install-scripts/05-docker.sh b/install-scripts/05-docker.sh new file mode 100755 index 0000000..66a8eaa --- /dev/null +++ b/install-scripts/05-docker.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +sudo systemctl enable --now docker.service +sudo usermod -aG docker $(whoami) +reboot diff --git a/install-scripts/06-zsh.sh b/install-scripts/06-zsh.sh new file mode 100755 index 0000000..dde988b --- /dev/null +++ b/install-scripts/06-zsh.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo usermod --shell /usr/bin/zsh $(whoami) diff --git a/packages.txt b/packages.txt new file mode 100644 index 0000000..5080085 --- /dev/null +++ b/packages.txt @@ -0,0 +1,17 @@ +bat +dash +docker +docker-compose +eza +grub-customizer +kitty +neovim +pyenv +qmk +starship +ttf-jetbrains-mono +ttf-nerd-fonts-symbols-common +vim +xclip +xsel +zsh