Skip to content

Do not expose HISTDB_FILE path via ps - #96

Open
mafredri wants to merge 1 commit into
larkery:masterfrom
mafredri:patch-histdb-file-path
Open

Do not expose HISTDB_FILE path via ps#96
mafredri wants to merge 1 commit into
larkery:masterfrom
mafredri:patch-histdb-file-path

Conversation

@mafredri

@mafredri mafredri commented Oct 5, 2020

Copy link
Copy Markdown
Contributor

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

larkery commented Oct 8, 2021

Copy link
Copy Markdown
Owner

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