2 ms·
I check in PROMPT_COMMAND whether the current terminal can sudo without a password and add a colored note to my prompt if so.
by dllthomas 10y ago
I check in PROMPT_COMMAND whether the current terminal can sudo without a password and add a colored note to my prompt if so.