Add sucmd to customize "sudo" command

Fixes #833
This commit is contained in:
Zachary Yedidia
2017-10-01 21:55:43 -04:00
parent 46ced988eb
commit f4e94d6d34
5 changed files with 18 additions and 5 deletions

View File

@@ -181,6 +181,13 @@ func OptionValueComplete(inputOpt, input string) (string, []string) {
if strings.HasPrefix("dos", input) {
suggestions = append(suggestions, "dos")
}
case "sucmd":
if strings.HasPrefix("sudo", input) {
suggestions = append(suggestions, "sudo")
}
if strings.HasPrefix("doas", input) {
suggestions = append(suggestions, "doas")
}
}
}