berndbausch |
08-06-2020 01:17 AM |
What do you mean by "history wrap around"? History is in a file, normally $HOME/.bash_history, and has a first command and a last command.
Do you mean a command that goes back in history and, when it reaches the first line, goes to the last?
By default, history viewing and editing uses emacs commands. Try to find what you want in the emacs manual. You can also use vi as the history editor (set -o vi).
However, I doubt that either emacs or vi have cursor movement commands that wrap around.
I am curious - why do you need this feature?
|