pay-respects/rules/_PR_GENERAL.toml

26 lines
403 B
TOML
Raw Permalink 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-09 17:16:58 +02:00
#[cmd_contains((?m)^(\S*)\/(\S*))]
chmod +x {{command[0]}} &&
{{command}}'''
]