-
Notifications
You must be signed in to change notification settings - Fork 8
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
Import previous shell commands #9
Comments
Good question! yes there are probably a few ways to do this. loki-shell/shell/loki-shell.zsh Lines 24 to 30 in a34d365
I think you could modify the command used to send the files with promtail to dump the entire history and not just the last entry. I haven't tested this myself, you may want to find a way to test this on a separate Loki, or maybe an ephemeral loki docker container with out any persistent storage just to make sure it does what you want (since we can't really delete from Loki yet, but this is coming in the future) |
I think a solution to this (if timestamps can be brought across) would go a long way towards #10 . |
I did this on a machine today, no timestamps but this works for importing the existing shell history
|
It works flawlessly! Any chance to import previous commands into Loki?
The text was updated successfully, but these errors were encountered: