Skip to content

Commit ac90eb0

Browse files
msbembasdwheeler
authored andcommitted
Update about_PSReadLine.md (#4831)
* Update about_PSReadLine.md added a note about convertto-securestring * expand description of history
1 parent 90a2961 commit ac90eb0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

reference/6/PSReadLine/About/about_PSReadLine.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,16 @@ typical call looks like
13981398
PSReadLine requires PowerShell 3.0, or newer, and the console host. It does
13991399
not work in PowerShell ISE. It does work in the console of Visual Studio Code.
14001400

1401+
### COMMAND HISTORY
1402+
1403+
PSReadLine maintains a history file containing all the commands and data you have entered from the
1404+
command line. This may contain sensitive data including passwords. For example, if you use the
1405+
`ConvertTo-SecureString` cmdlet the password is logged in the history file as plain text. The
1406+
history files is a file named `$($host.Name)_history.txt`. On Windows systems the history file is
1407+
stored at `$env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine`. On non-Windows systems, the
1408+
history files is stored at `$env:XDG_DATA_HOME/powershell/PSReadLine` or
1409+
`$env:HOME/.local/share/powershell/PSReadLine`.
1410+
14011411
### FEEDBACK & CONTRIBUTING TO PSReadLine
14021412

14031413
[PSReadLine on GitHub](https://github.com/lzybkr/PSReadLine)

reference/7/PSReadLine/About/about_PSReadLine.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,16 @@ typical call looks like
13981398
PSReadLine requires PowerShell 3.0, or newer, and the console host. It does
13991399
not work in PowerShell ISE. It does work in the console of Visual Studio Code.
14001400

1401+
### COMMAND HISTORY
1402+
1403+
PSReadLine maintains a history file containing all the commands and data you have entered from the
1404+
command line. This may contain sensitive data including passwords. For example, if you use the
1405+
`ConvertTo-SecureString` cmdlet the password is logged in the history file as plain text. The
1406+
history files is a file named `$($host.Name)_history.txt`. On Windows systems the history file is
1407+
stored at `$env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine`. On non-Windows systems, the
1408+
history files is stored at `$env:XDG_DATA_HOME/powershell/PSReadLine` or
1409+
`$env:HOME/.local/share/powershell/PSReadLine`.
1410+
14011411
### FEEDBACK & CONTRIBUTING TO PSReadLine
14021412

14031413
[PSReadLine on GitHub](https://github.com/lzybkr/PSReadLine)

0 commit comments

Comments
 (0)