You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Example 3: Define the function 'killp' to kill a process
10
+
functionkillp { Get-Process|Out-ConsoleGridView-OutputMode Single -Filter $args[0] |Stop-Process-Id {$_.Id} }
11
+
killp
12
+
# .Silent cls
13
+
# Example 3b: 'killp note' fitlers for "note" (e.g. notepad.exe)
14
+
killp note
15
+
# .Silent cls
16
+
# Example 4: Navigate PowerShell command history (Map this to F7 with https://github.com/gui-cs/F7History)
17
+
Get-History|Sort-Object-Descending -Property Id -Unique |Select-Object CommandLine -ExpandProperty CommandLine |Out-ConsoleGridView-OutputMode Single -Filter $line-Title "Command Line History"
0 commit comments