Skip to content

Commit

Permalink
see change log for v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhitsolutions committed Oct 8, 2018
1 parent d617a8e commit 36c5f1e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 41 deletions.
Binary file modified PSReadlineHelper.psd1
Binary file not shown.
46 changes: 8 additions & 38 deletions PSReadlineHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Set-PSReadlineKeyHandler -Key Alt+w -BriefDescription SaveInHistory -LongDescrip
# needing to type cd and won't change the command line.

#pre-populate a global variable
$global:PSReadlineMarks = @{
$PSReadlineMarks = @{
[char]"s" = "c:\scripts"
[char]"d" = "~\documents"
}
Expand Down Expand Up @@ -215,50 +215,20 @@ if ($ver -lt 2.0.0) {
}
#endregion

Export-ModuleMember -Variable PSReadlineMarks

<#
Set-PSReadlineOption -AddToHistoryHandler {
Param($line)
if ($global:myHistoryCSV) {
[pscustomobject]@{
Computername = $env:COMPUTERNAME
Username = "$env:USERDOMAIN\$env:username"
Host = $host.name
PSVersion = $PSVersionTable.PSVersion
BuildVersion = $PSVersionTable.BuildVersion
Date = Get-Date
Path = (Get-Location).Path
Line = $line
} | Export-CSV -Path $global:myHistoryCSV -Append -NoTypeInformation
return $True
}
else {
return $false
}
<#
#Add commands to PSReadline history if more than 3 characters and not a help command
#and copy the command to the clipboard
if ($line.length -ge 3 -AND $line -notmatch "^get-help|^help") {
#copy the line to the clipboard
Set-Clipboard -Value $line
return $True
}
else {
return $False
} #>



$msg = @"
PSReadLineHelper
****************
Added these options:
$(Get-myPSReadline | format-table | Out-string)
$($(Get-myPSReadline | format-table | Out-string).Trim())
Added these handlers:
$(Get-MyPSReadlineKey | Out-String)
$($(Get-MyPSReadlineKey | Out-String).Trim())
"@

Write-Verbose $msg
Write-Host $msg -ForegroundColor green
#>
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# MyPSReadLine

This module contains a number of helper functions and customizations for the PSReadline module. These commands only work with version 1.2 of PSReadline on Windows. PSReadline 2.0, which is part of PowerShell Core, has significant changes that are incompatible with this version of the module.
This module contains a number of helper functions and customizations for the PSReadline module. _**These commands only work with version 1.2 of PSReadline on Windows**_. PSReadline 2.0, which is part of PowerShell Core, has significant changes that are incompatible with this version of the module.

This module is still under development and has not been released to the PowerShell Gallery.

*last updated 26 September 2018*
*last updated 8 October 2018*
8 changes: 7 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Changelog for MyPSReadLine
# Change Log for MyPSReadLine

## v0.6.0

+ code cleanup
+ Added requirement for ConsoleHost
+ Published to the PowerShell Gallery

## v0.5.0

Expand Down

0 comments on commit 36c5f1e

Please sign in to comment.