This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# General settings | |
project_roots = [".git"] | |
# Keys | |
up = "k" | |
down = "j" | |
quit = "q" | |
help = "?" | |
all_up = "g" | |
all_down = "G" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module AnyBox | |
# Define the computer name prompt; the field must not be empty and the computer must be online. | |
$p = @(New-Prompt -Group 0 -Name 'pcName' -Message 'Computer Name:' -MessagePosition 'Left' -DefaultValue 'Localhost' ` | |
-ValidateNotEmpty -ValidateScript { Test-Connection $_ -Count 1 -Quiet -ea 0}) | |
# Define the process filter prompt | |
$p += @(New-Prompt -Group 0 -Name 'pFilter' -Message ' Process Name:' -MessagePosition 'Left' -DefaultValue '*' ` | |
-ValidateNotEmpty) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module AnyBox | |
[string]$default_input = 'localhost' | |
[hashtable]$answer = $null | |
[bool]$continue = $true | |
[hashtable]$common = @{WindowStyle = 'ToolWindow'; Title = 'Process Killer'; CancelButton = 'Cancel'} | |
while ($continue) { |