Solved Scrollable history?

source the redo script mentioned above in zsh or bash. type the start few letters of a previous command and hit ctrl-r. you’ll see zsh/bash itself show a few command lines. you can scroll down/up to select one and execute it. more keys are bound to other actions. read the redo script.
 
source the redo script mentioned above in zsh or bash. type the start few letters of a previous command and hit ctrl-r. you’ll see zsh/bash itself show a few command lines. you can scroll down/up to select one and execute it. more keys are bound to other actions. read the redo script.
I still can't figure out how to run this, but what do I need to run from a (sh) command prompt?

Do I need to run bash first?

Can you give me a command to run to get this started? I've tried all sorts, but I'm not familiar with bash even though I have it installed.
 
Can you give me a command to run to get this started? I've tried all sorts, but I'm not familiar with bash even though I have it installed.
Which part of the instructions are you having trouble with?

2025-11-19-231834_1920x1080_scrot.png
 
I still can't figure out how to run this, but what do I need to run from a (sh) command prompt?

Do I need to run bash first?

Can you give me a command to run to get this started? I've tried all sorts, but I'm not familiar with bash even though I have it installed.
Show us what you tried.
 
Maybe sysutils/hstr is what you are looking for. It has freebsd install and configuration instructions on it's github wiki here.
Many thanks, that's exactly the sort of thing I was looking for, and works straight out of the box unlike redo by running hstr without the need to specify the shell and do other things which never figured out.
 
The first line works. The second one does nothing.

sh:
root@X1:~ $ pwd
/root
root@X1:~ $ source redo/redo
sh: source: not found
root@X1:~ $ bash
[root@X1 ~]# source redo/redo
[root@X1 ~]#
/bin/sh doesn't know about "source" (for sourcing a file you use "." in /bin/sh) but the instructions clearly say this is for zsh or bash. The second source merges the result of commands in redo in the current bash. After this what is described in README.md should work but it seems you are not actually reading the README.md carefully enough.
 
root@X1:~ $ bash
[root@X1 ~]# source redo/redo
root@X1:~ $ bash
[root@X1 ~]# source redo/redo
root@X1:~ $ bash
[root@X1 ~]# source redo/redo
/bin/sh doesn't know about "source" (for sourcing a file you use "." in /bin/sh) but the instructions clearly say this is for zsh or bash. The second source merges the result of commands in redo in the current bash. After this what is described in README.md should work but it seems you are not actually reading the README.md carefully enough.
I guess you didn't notice the commands which showed

sh:
root@X1:~ $ bash
[root@X1 ~]# source redo/redo
[root@X1 ~]#
 
May be this can be a solution too, probably not convenient as redo or hstr though:
 
My .bash_history is the most precious data I have. I'm always careful to backup this one. And never forget to increase HISTSIZE.

"Those who forget history are condemned to repeat it".
 
Back
Top