format and add comments
This commit is contained in:
parent
537d522ca4
commit
ca9faca359
1 changed files with 32 additions and 0 deletions
32
setup
32
setup
|
@ -1,11 +1,27 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# setup
|
||||
#
|
||||
|
||||
clear
|
||||
|
||||
# execute in less with a header for style points
|
||||
|
||||
exec > >(less +F --header 8) 2>&1
|
||||
trap 'exec >&- 2>&-; wait' EXIT
|
||||
|
||||
|
||||
# grab said header
|
||||
|
||||
curl -s https://doordesk.net/doors
|
||||
echo -e "Doors are sturdier than windows.\n-------------------------------------------------------"
|
||||
|
||||
|
||||
|
||||
#
|
||||
# detect OS and run corresponding setup
|
||||
#
|
||||
|
||||
. /etc/os-release
|
||||
OS=$NAME
|
||||
echo -e "\nDetected OS as $OS"
|
||||
|
@ -41,6 +57,12 @@ elif [[ $OS == *Fedora* ]]; then
|
|||
.doors/scripts/install_min_fedora
|
||||
fi
|
||||
|
||||
|
||||
|
||||
#
|
||||
# copy configs
|
||||
#
|
||||
|
||||
echo -e "\nInstalling Configs..." &&
|
||||
cd .doors/configs &&
|
||||
|
||||
|
@ -56,5 +78,15 @@ echo -e "\nInstalling Configs..." &&
|
|||
echo -e "\nLinking profile..." &&
|
||||
cp -sbv $HOME/.config/shell/profile $HOME/.zprofile &&
|
||||
|
||||
|
||||
|
||||
#
|
||||
# wrap up
|
||||
#
|
||||
|
||||
echo -e "\nDone!\nLog out and back in for changes to take effect."
|
||||
|
||||
|
||||
# wait for less to catch up and tell it we're done
|
||||
|
||||
sleep 1 && killall -s SIGINT less
|
||||
|
|
Loading…
Add table
Reference in a new issue