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

Do not expose HISTDB_FILE path via ps #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mafredri
Copy link
Contributor

@mafredri mafredri commented Oct 5, 2020

Sorry for spamming the PRs 😅. Anyway, this is a "nice to have", not an issue per-se, so I'll understand if it's of no interest to you to merge.

I prefer not to expose the full path of $HISTDB_FILE to process monitors. The use case for this is shared systems mostly where I might not want to expose the full path to the file. With this PR, the following:

sqlite3 -batch /Users/maf/.histdb/zsh-history.db

becomes:

sqlite3 -batch zsh-history.db

It's just neater (IMO) and doesn't expose custom paths if I were to load it from another place.

@larkery
Copy link
Owner

larkery commented Oct 8, 2021

It does look neater. I can't think of a reason why it would be a problem, but I will give it a little time to percolate in my brain just in case.

Thanks

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

Successfully merging this pull request may close these issues.

2 participants