picha/scripts/initial.sh

22 lines
431 B
Bash
Raw Normal View History

2024-11-16 03:43:16 +00:00
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
. /etc/os-release
case $ID in
"debian" )
sudo apt update -y && sudo apt upgrade -y
2024-11-17 03:34:32 +00:00
sudo apt install vim git curl tmux stow ranger
cd /home/admin/
git clone git@github.com:iskm/dots.git
mv .bashrc .bashrc.bak; mv .bash_profile .bash_profile.bak
cd dots
stow bash bin git shellenv tmux vim ranger
2024-11-16 03:43:16 +00:00
;;
"rhel" )
sudo dnf update -y
;;
esac