Bash is waiting for me to press q in order to continue when running command, how do I stop it? #391
-
When I run command that has an output, for example aws cli command, I see the result but need to press q in order to continue. I think this is cause by using less. When I run script and just want to see the printing on the screen, and I dont want to press after every output. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
So does the problem happen even with e.g.
What is the result of the following command? $ echo "$AWS_PAGER" |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Here I summarize an answer for other users to easily find a solution. Oh My Bash sets the environment variable # End of bashrc
unset -v PAGER If you wouldn't like to use the pager at all instead of using the default specified in other places, you may instead try setting an empty value to # End of bashrc
export PAGER= If you would like to turn it off for each command, you need to configure it for each command. For example, in the case of the |
Beta Was this translation helpful? Give feedback.
Here I summarize an answer for other users to easily find a solution.
Oh My Bash sets the environment variable
PAGER=less
. If you do not want it, you can unset it aftersource "$OSH"/oh-my-bash.sh
in your~/.bashrc
. For example, at the end of your~/.bashrc
, you can add the following line:If you wouldn't like to use the pager at all instead of using the default specified in other places, you may instead try setting an empty value to
PAGER
(suggested by @eyalya):If you would like to turn it off for each command, you need to configure it for each command. For example, in the case of the
aws
CLI command, you can specify it thro…