From 07748f7fab84b75ebffad897d1e2aac8bc30dbd7 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Thu, 15 Jun 2023 17:49:53 -0400 Subject: [PATCH] fancy output using less --- setup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup b/setup index e09d688..5bdf066 100755 --- a/setup +++ b/setup @@ -1,11 +1,14 @@ #!/bin/bash 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 OS=$NAME -echo -e "\nDetected OS as $OS" +echo -e "Detected OS as $OS" if [[ $OS == *Arch* ]]; then cd && @@ -54,3 +57,4 @@ echo -e "\nInstalling Configs..." && cp -sbv $HOME/.config/shell/profile $HOME/.zprofile && echo -e "\nDone!" +killall -s SIGINT less