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

Use python_history for shell_plus command #1863

Closed
wants to merge 1 commit into from

Conversation

igorgaming
Copy link

This feature was added to Django a few years ago. It allows you to restore the command history when you re-enter the shell (in our case, shell_plus),

What it means:
If the user has executed some commands, they are written to ~/.python_history by default.
Then, when exiting and re-entering, the entire history can be restored in a shell using the up arrow.

I just copied this code from the Django command, but if you want to do the same in other way - np with that.

@igorgaming
Copy link
Author

See #1869

@igorgaming igorgaming closed this Apr 8, 2024
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.

None yet

1 participant