2024-09-25 18:00:00 +02:00
|
|
|
command = "_PR_general"
|
2023-07-31 18:46:35 +02:00
|
|
|
|
|
|
|
|
[[match_err]]
|
|
|
|
|
pattern = [
|
2023-07-31 20:20:46 +02:00
|
|
|
"command not found",
|
|
|
|
|
"unknown command",
|
2024-12-31 15:11:03 +01:00
|
|
|
"nu::shell::external_command",
|
2025-01-04 22:30:19 +01:00
|
|
|
"is not recognized as a name of a cmdlet"
|
2023-07-31 18:46:35 +02:00
|
|
|
]
|
|
|
|
|
suggest = [
|
2023-08-04 02:42:16 +02:00
|
|
|
'''
|
2025-01-07 01:46:29 +01:00
|
|
|
{{select[0](path)}} {{command[1:]}} '''
|
2023-07-31 18:46:35 +02:00
|
|
|
]
|
2025-03-28 14:19:57 +00:00
|
|
|
|
|
|
|
|
[[match_err]]
|
|
|
|
|
pattern = [
|
|
|
|
|
"permission denied",
|
|
|
|
|
"is not an executable file"
|
|
|
|
|
]
|
|
|
|
|
suggest = [
|
|
|
|
|
'''
|
2025-04-06 16:58:52 +02:00
|
|
|
#[exe_contains(/)]
|
2025-03-28 14:19:57 +00:00
|
|
|
chmod +x {{command[0]}} &&
|
|
|
|
|
{{command}}'''
|
|
|
|
|
]
|