For context, sometimes when updating via the terminal, if the lines are too long to display, the pager (or less package?) displays with Lines 1-8 END and hitting ENTER doesn’t push the update thru, only hitting “Q” pushes the update process through. Is there a way I can edit my .bashrc to like “skip” the pager part, so it just rolls to the next step in the update process instead of me always having to hit “Q” when this happens?
Btw, ‘yay’ is just an alias for this command that I use to update my system:
alias yay=‘sudo apt update && apt list --upgradable && sudo apt upgrade && flatpak update’
+1 for updating the yay alias instead of exporting globally in .bashrc. But that alias contains multiple commands and the screenshot shows the pager being used for apt list --upgradable which is the second command, so the way to update it would be:
alias yay='sudo apt update && APT_PAGER= apt list --upgradable && sudo apt upgrade && flatpak update'