-
Notifications
You must be signed in to change notification settings - Fork 302
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
Feature Request: Get-History
command showing history from previous sessions
#1074
Comments
Unless I'm doing something special I'm aware of, doesn't PSReadLine do this by default in Core? Can you provide what specific bash-like functionality you are looking for? |
Yes, PSReadLine does this by default. |
So, i downloaded and tried PowerShell 6.0.0-beta.7. The desired functionality would be that the |
@CarltonSemple Correct. Assuming you don't have something in your profile that is disabling PSReadLine, and assuming you are not making any modifications to the default install |
@markekraus I deleted my profile files just now, and tried 6.0.0-beta.8 .... |
I'm using Windows 10 |
@CarltonSemple ah |
You can search backwards with Ctrl+r. If you go too far, use Ctrl+s to move forward through the matching history list. |
@markekraus I guess maybe I should change the title to specifically reference the |
Get-History
command showing history from previous sessions
Possibly but the point, I think, is that PSReadline (inspired by GNU Readline), was created to provide such features.
I'm not sure if this will work on PowerShell Core. I also had find functions I had defined that could search these history files. I don't use these so much anymore because PSReadline scratched that itch pretty nicely. |
I think some parity with bash's |
@SteveL-MSFT @daxian-dbw Could you please make a conclusion - should we enhance Get-History cmdlet in the repo (change label to Area-Cmdlets-Core) or PSReadline (in the case please move the issue in PSReadline repo)? |
See also the "Dangers" of this indefinite history. https://www.windowsmanagementexperts.com/the-danger-of-default-settings-the-psreadline-module/the-danger-of-default-settings-the-psreadline-module.htm |
Apparently there are community-provided solutions for this, but it would be nice to have a built-in solution for saving command history across sessions, similar to Bash.
@jpsnover https://twitter.com/jsnover/status/919145208255799296
The text was updated successfully, but these errors were encountered: