pay-respects/rules/pr_general.toml

26 lines
387 B
TOML
Raw Normal View History

command = "_PR_general"
2023-07-31 18:46:35 +02:00
[[match_err]]
pattern = [
"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
]
[[match_err]]
pattern = [
"permission denied",
"is not an executable file"
]
suggest = [
'''
2025-04-06 16:58:52 +02:00
#[exe_contains(/)]
chmod +x {{command[0]}} &&
{{command}}'''
]