-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
C-cliCLI interfaceCLI interfaceconsultationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Describe the feature you'd like see implemented in sudo-rs
Strip a trailing : and prefixing [sudo] block from a given SUDO_PROMPT
What problem can be solved with this feature?
Would get rid of users that have customised their ogsudo prompt seeing e.g. [sudo: [sudo] password:] PAMPROMPT: but instead would show [sudo: password] PAMPROMPT which is passable.
Additional context
This would allow users that have customised prompts a better user experience when switching between sudo-rs and ogsudo. Won't solve any issues with software relying on the password prompt looking a certain way.
For --prompt we could implement the same check, but I think it's mostly relevant for the environment variable.
Also see #1267
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-cliCLI interfaceCLI interfaceconsultationenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers