mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 14:30:10 +01:00
feat: conditional suggestions
This commit is contained in:
parent
72db07051b
commit
6b4d926dde
5 changed files with 54 additions and 19 deletions
|
|
@ -27,4 +27,11 @@ pattern = [
|
|||
"you don't have access to the history db.",
|
||||
"you don't have write permissions",
|
||||
]
|
||||
suggest = 'sudo {{command}}'
|
||||
suggest = [
|
||||
'''
|
||||
#[executable(sudo)]
|
||||
sudo {{command}}''',
|
||||
'''
|
||||
#[executable(doas)]
|
||||
doas {{command}}''',
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue