question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clear-History isn't working on OS X 10.11.6

See original GitHub issue

Steps 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fxlvcommented, Aug 20, 2016

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 calling Clear-History

0reactions
lzybkrcommented, Nov 9, 2016

This issue was moved to lzybkr/PSReadLine#465

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found