picha/scripts/initial.sh

23 lines
522 B
Bash
Raw Permalink 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" )
2024-11-17 04:03:34 +00:00
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y vim git curl tmux stow ranger
2024-11-17 03:34:32 +00:00
cd /home/admin/
2024-11-17 04:03:34 +00:00
git clone https://github.com/iskm/dots.git
if [[ -e .bashrc ]]; then mv .bashrc .bashrc.bak; fi
if [[ -e .bash_profile ]]; then mv .bash_profile .bash_profile.bak; fi
2024-11-17 03:34:32 +00:00
cd dots
stow bash bin git shellenv tmux vim ranger
2024-11-16 03:43:16 +00:00
;;
"rhel" )
sudo dnf update -y
;;
esac