File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ Begin
27
27
{
28
28
if ($last -gt 0 -and $match -ne $null )
29
29
{
30
- Get-Content - Last $last $hxPath | where { $_ -like " *$match *" } | foreach { FormatLine $_ } | more
30
+ Get-Content - Last $last $savePath | where { $_ -like " *$match *" } | foreach { FormatLine $_ } | more
31
31
}
32
32
elseif ($last -gt 0 )
33
33
{
34
- Get-Content - Last $last $hxPath | foreach { FormatLine $_ } | more
34
+ Get-Content - Last $last $savePath | foreach { FormatLine $_ } | more
35
35
}
36
36
elseif ($match -ne $null )
37
37
{
38
- Get-Content $hxPath | where { $_ -like " *$match *" } | foreach { FormatLine $_ } | more
38
+ Get-Content $savePath | where { $_ -like " *$match *" } | foreach { FormatLine $_ } | more
39
39
}
40
40
else
41
41
{
42
- Get-Content $hxPath | foreach { FormatLine $_ } | more
42
+ Get-Content $savePath | foreach { FormatLine $_ } | more
43
43
}
44
44
}
45
45
@@ -72,11 +72,7 @@ Process
72
72
elseif ($typnam -like ' Int*' ) { $script :last = $arg2 }
73
73
}
74
74
75
- $hxPath = (Get-PSReadlineOption ).HistorySavePath
76
- Write-Host $hxPath - ForegroundColor Green
77
- Write-Host
78
- Write-Host ' Id CommandLine'
79
- Write-Host ' -- -----------'
75
+ $script :savePath = (Get-PSReadlineOption ).HistorySavePath
80
76
81
77
GetHistory
82
78
}
You can’t perform that action at this time.
0 commit comments