Follow

Does anyone have a good solution for handling bash history?

What (I think) I want:
- History search for each shell searches the history of that shell first, then all other shells' history.
- I don't want to lose history from windows opened in tmux or when I'm running a bunch of shells in parallel.

What I don't care about:
- Syncing history
- Fuzzy search

What I don't want:
- Mandatory full-screen history search

I've tried `atuin` so far, and I don't like it. I think I can only use it with the full screen history search and somehow despite the fact that it's automatically merging commands from all shells, it still loses commands, sometimes *from the shell I'm currently using*.

Note: I will eventually try `fish` or `zsh`, but my schedule and to-do list don't currently permit me to rework all my [dotfiles](github.com/pganssle/dotfiles) to work with a new shell.

@pganssle have you tried using `fzf` github.com/junegunn/fzf which has bash bindings to override the default ctrl-r, although not sure if it achieves the "history merging"

@pganssle I've been trying out github.com/asmeurer/dotfiles/b for separate histories per shell. Should work well if you maintain the same terminal tab configuration.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.