-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure terminal history searching #125
Comments
I'm happy to add the history options. |
Thinking about it, 1M lines in memory and 1B lines on disk seems a bit excessive... What about 100k for both? |
Well I personally find the history much more helpful 😉 but yeh it's not a necessity. Perhaps there's a way to incoporate both
ph yeh sure that was just an example 👍 |
This appears to do the trick:
I still want to wait a bit, I might find more stuff that's broken. Cool suggestions though. |
Just a minor quality of life configuration. I always find it helpful to configure my terminal (a) to not store duplicate commands in history and (b) to allow for incremental searching (e.g. if you type
ab
, then it will only toggle commands in history beginning withab
.for (a), you add in
~/.bashrc
:HISTCONTROL=ignoreboth # optionally increase history capacity HISTSIZE=1000000 HISTFILESIZE=1000000000
(see https://www.linuxjournal.com/content/using-bash-history-more-efficiently-histcontrol)
for (b), you add in
~/.inputrc
:(see https://codeinthehole.com/tips/the-most-important-command-line-tip-incremental-history-searching-with-inputrc/)
The text was updated successfully, but these errors were encountered: