fancy output using less

This commit is contained in:
Adam 2023-06-15 17:49:53 -04:00
parent 048e341fe4
commit 07748f7fab

8
setup
View file

@ -1,11 +1,14 @@
#!/bin/bash #!/bin/bash
clear clear
exec > >(less +F --header 7) 2>&1
trap 'exec >&- 2>&-; wait' EXIT
curl https://doordesk.net/doors curl -s https://doordesk.net/doors
echo "-------------------------------------------------------"
. /etc/os-release . /etc/os-release
OS=$NAME OS=$NAME
echo -e "\nDetected OS as $OS" echo -e "Detected OS as $OS"
if [[ $OS == *Arch* ]]; then if [[ $OS == *Arch* ]]; then
cd && cd &&
@ -54,3 +57,4 @@ echo -e "\nInstalling Configs..." &&
cp -sbv $HOME/.config/shell/profile $HOME/.zprofile && cp -sbv $HOME/.config/shell/profile $HOME/.zprofile &&
echo -e "\nDone!" echo -e "\nDone!"
killall -s SIGINT less