Open savaroskij opened 4 years ago
This seems entirely reasonable. I would probably use sudope_command
as the variable name, to keep it namespaced by the plugin that consumes it.
Thanks @bobthecow, that's a good idea. Done this in 47e694636e7e4cb2d3a6ac0f927ba3593ebc058c.
e1492c6c15412f3c95b8b0f1954eebb7cc1d7b46 fixes a bug introduced by previous changes in my branch: when the super user command was added to the command line, the following white space was not considered in pushing the cursor ahead.
This PR adds and documents the possibility to set a custom super user command to prepend to the command line, such as
doas
instead ofsudo
for *BSD users.You can set the custom su command in the variable
su_command
.