diff --git a/PSReadlineHelper.psd1 b/PSReadlineHelper.psd1 index 5daefa0..ef63a2c 100644 Binary files a/PSReadlineHelper.psd1 and b/PSReadlineHelper.psd1 differ diff --git a/PSReadlineHelper.psm1 b/PSReadlineHelper.psm1 index 3a30764..d97f470 100644 --- a/PSReadlineHelper.psm1 +++ b/PSReadlineHelper.psm1 @@ -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" } @@ -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 \ No newline at end of file +Write-Host $msg -ForegroundColor green +#> \ No newline at end of file diff --git a/README.md b/README.md index aa20d96..8fa3946 100644 --- a/README.md +++ b/README.md @@ -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* diff --git a/changelog.md b/changelog.md index e4f5e59..2917569 100644 --- a/changelog.md +++ b/changelog.md @@ -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