Skip to content
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

What are hstr options to maintain history per tmux panel when used with Oh My Zsh? #475

Open
faxotherapy opened this issue Jan 18, 2023 · 2 comments

Comments

@faxotherapy
Copy link

faxotherapy commented Jan 18, 2023

Hi,
I use tmux with Oh My Zsh and have activated history per panel; each panel has its own command history. Unfortunately, hstr does not seem to take account of that config.

Related entries in my .zshrc file contains:

# Disable shared history
unsetopt share_history

# HSTR
export HSTR_CONFIG=hicolor 
export HISTFILE=~/.zsh_history

What should I use for export HISTFILE then?

Thank you.

@dvorka
Copy link
Owner

dvorka commented Jan 23, 2023

@faxotherapy can you please try to use full path instead of ~:

export HISTFILE=/home/user/.zsh_history

Each panel then should have this property set to it's own command history file.

If the history is kept in the memory only an not persisted to a file, then hstr cannot be used

@faxotherapy
Copy link
Author

Thank you for your suggestion. Using the full path doesn't seem to work either. I'm on MacOS though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants