disable less
This commit is contained in:
parent
4fd71c35d9
commit
ea78303b23
1 changed files with 15 additions and 15 deletions
30
setup
30
setup
|
@ -35,8 +35,8 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Trigger sudo prompt before less can block password input
|
# # Trigger sudo prompt before less can block password input
|
||||||
sudo echo ''
|
# sudo echo ''
|
||||||
|
|
||||||
# Detect OS and act accordingly
|
# Detect OS and act accordingly
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
|
@ -46,15 +46,15 @@ printf "\nSetup for %s\n" "$OS"
|
||||||
|
|
||||||
case "$OS" in
|
case "$OS" in
|
||||||
*Arch*)
|
*Arch*)
|
||||||
# Check for less and install if not found
|
# # Check for less and install if not found
|
||||||
if ! type "less" > /dev/null 2>&1; then
|
# if ! type "less" > /dev/null 2>&1; then
|
||||||
echo "less not found, installing..."
|
# echo "less not found, installing..."
|
||||||
sudo pacman -S --noconfirm less # <<< should handle other distros here
|
# sudo pacman -S --noconfirm less # <<< should handle other distros here
|
||||||
fi
|
# fi
|
||||||
clear &&
|
# clear &&
|
||||||
# Execute in less with a header for style points
|
# # Execute in less with a header for style points
|
||||||
exec > >(less +F -X --header 8) 2>&1
|
# exec > >(less +F -X --header 8) 2>&1
|
||||||
trap 'exec >&- 2>&-; wait' EXIT
|
# trap 'exec >&- 2>&-; wait' EXIT
|
||||||
echo "$HEADER"
|
echo "$HEADER"
|
||||||
echo "Enabling Pacman colors..."
|
echo "Enabling Pacman colors..."
|
||||||
sudo sed '/Color/s/^#//' -i /etc/pacman.conf
|
sudo sed '/Color/s/^#//' -i /etc/pacman.conf
|
||||||
|
@ -80,8 +80,8 @@ case "$OS" in
|
||||||
"$HOME"/.doors/scripts/nvim_clean
|
"$HOME"/.doors/scripts/nvim_clean
|
||||||
echo "Done! Run setup to refresh"
|
echo "Done! Run setup to refresh"
|
||||||
|
|
||||||
# Give less time to catch up and tell it we're done
|
# # Give less time to catch up and tell it we're done
|
||||||
sleep .5 && killall -s SIGINT less
|
# sleep .5 && killall -s SIGINT less
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -127,5 +127,5 @@ fi
|
||||||
# Wrap up
|
# Wrap up
|
||||||
printf "\nDone!\nLog out and back in for changes to take effect."
|
printf "\nDone!\nLog out and back in for changes to take effect."
|
||||||
|
|
||||||
# Give less time to catch up and tell it we're done
|
# # Give less time to catch up and tell it we're done
|
||||||
sleep .5 && killall -s SIGINT less
|
# sleep .5 && killall -s SIGINT less
|
||||||
|
|
Loading…
Add table
Reference in a new issue