From ea78303b231b5f59b6d33a31c07566e75a2e9338 Mon Sep 17 00:00:00 2001 From: Adam Doyle Date: Sun, 15 Dec 2024 17:52:17 -0500 Subject: [PATCH] disable less --- setup | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/setup b/setup index 15552dc..1bee9a0 100755 --- a/setup +++ b/setup @@ -35,8 +35,8 @@ fi -# Trigger sudo prompt before less can block password input -sudo echo '' +# # Trigger sudo prompt before less can block password input +# sudo echo '' # Detect OS and act accordingly . /etc/os-release @@ -46,15 +46,15 @@ printf "\nSetup for %s\n" "$OS" case "$OS" in *Arch*) - # Check for less and install if not found - if ! type "less" > /dev/null 2>&1; then - echo "less not found, installing..." - sudo pacman -S --noconfirm less # <<< should handle other distros here - fi - clear && - # Execute in less with a header for style points - exec > >(less +F -X --header 8) 2>&1 - trap 'exec >&- 2>&-; wait' EXIT + # # Check for less and install if not found + # if ! type "less" > /dev/null 2>&1; then + # echo "less not found, installing..." + # sudo pacman -S --noconfirm less # <<< should handle other distros here + # fi + # clear && + # # Execute in less with a header for style points + # exec > >(less +F -X --header 8) 2>&1 + # trap 'exec >&- 2>&-; wait' EXIT echo "$HEADER" echo "Enabling Pacman colors..." sudo sed '/Color/s/^#//' -i /etc/pacman.conf @@ -80,8 +80,8 @@ case "$OS" in "$HOME"/.doors/scripts/nvim_clean echo "Done! Run setup to refresh" - # Give less time to catch up and tell it we're done - sleep .5 && killall -s SIGINT less + # # Give less time to catch up and tell it we're done + # sleep .5 && killall -s SIGINT less exit 0 fi @@ -127,5 +127,5 @@ fi # Wrap up printf "\nDone!\nLog out and back in for changes to take effect." -# Give less time to catch up and tell it we're done -sleep .5 && killall -s SIGINT less +# # Give less time to catch up and tell it we're done +# sleep .5 && killall -s SIGINT less