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

keepassxc-cli: history of previous commands #5190

Open
2019-05-10 opened this issue Jul 28, 2020 · 2 comments
Open

keepassxc-cli: history of previous commands #5190

2019-05-10 opened this issue Jul 28, 2020 · 2 comments

Comments

@2019-05-10
Copy link

keepassxc-cli open Foo.kdbx
Passwords> ls
foo
bar
Passwords>

If now I hit the up key, all I get is
Passwords> ^[[A

instead of the last command.
Would be great if some sort of history, at least for the current session, exists.

@slowpeek
Copy link

slowpeek commented Jun 1, 2021

All you need is rlwrap:

rlwrap -H /dev/null keepassxc-cli open ...

-H /dev/null is there to discard history.

Running it over ssh be sure to set -t option for ssh (otherwise passwords would be echoed in cleartext):

ssh -t user@host rlwrap -H /dev/null keepassxc-cli open ...

@ralienpp
Copy link

ralienpp commented Aug 4, 2023

While rlwrap solves the issue, it would be more user-friendly to make this a part of the software itself, so that it works out of the box.

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

4 participants