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

Better shell history #18

Merged
merged 3 commits into from
Feb 7, 2020
Merged

Better shell history #18

merged 3 commits into from
Feb 7, 2020

Conversation

vinc
Copy link
Owner

@vinc vinc commented Feb 7, 2020

This PR will make it possible to persist the shell command history between sessions and improve the transition to and from history mode.

The up and down keys are used to navigate the history while any other key will replace the current command by the command currently shown from the history. The down key can go one step beyond the history vector to show the current command.

@vinc
Copy link
Owner Author

vinc commented Feb 7, 2020

Right now the path to the file history is hardcoded to /usr/admin/.shell_history rather than ~/.shell_history because the OS still don't have a process struct to store the current user.

@vinc vinc merged commit c736091 into master Feb 7, 2020
@vinc vinc deleted the feature/better-shell-history branch February 7, 2020 17:36
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.

1 participant