Skip to content

Bash is waiting for me to press q in order to continue when running command, how do I stop it? #391

Answered by akinomyoga
eyalya asked this question in Q&A
Discussion options

You must be logged in to vote

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 after source "$OSH"/oh-my-bash.sh in your ~/.bashrc. For example, at the end of your ~/.bashrc, you can add the following line:

# 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 PAGER (suggested by @eyalya):

# 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 aws CLI command, you can specify it thro…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@akinomyoga
Comment options

@akinomyoga
Comment options

@akinomyoga
Comment options

Comment options

You must be logged in to vote
3 replies
@eyalya
Comment options

@akinomyoga
Comment options

@akinomyoga
Comment options

Answer selected by akinomyoga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants