Clear-History isn't working on OS X 10.11.6
See original GitHub issueSteps to reproduce
Clear-History
Expected behavior
https://technet.microsoft.com/en-us/library/hh849733.aspx
Actual behavior
Clear-History does not delete previously used commands
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.9
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Safari history is not deleting according to its own settings
Hi! I have set the settings in safari on my mac to remove objects from history after one day. Still, the history is...
Read more >Can't Clear Safari History? Try These 6 Fixes - Switching To Mac
Clear Safari Browser History on iPhone & iPad. You can completely clear your Safari browsing history and data via the Settings app on...
Read more >Can't delete Safari history entry on Mac! - Ask Different
After some googling I figured it out: quit Safari;. open terminal and type: cd ~/Library/Safari. rm History.db History.db-lock.
Read more >How to Clear Safari History on a Mac in 4 Simple Steps
You can find out how to delete your Safari search history, cookies, and cache from a Mac with the detailed guide below. We'll...
Read more >Common Mac OS X 10.11 El Capitan Problems & Solutions
This article shows you the most common OS X El Capitan problems and provides you detailed solutions to fix these issues.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I did some dtracing. Looks like there are indeed 2 sets of history, one from the powershell, other from readline.
The readline one is in
~/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
and it is not cleared when callingClear-History
This issue was moved to lzybkr/PSReadLine#465