Re:Shellfirm: Intercept risky patterns at the command line
by yencabulator on Sunday July 31, 2022 @01:22PM
(#32297049)
My prompt only includes username if it's not the usual one, and it's on an orange-red background if it's root.
Similarly, my prompt doesn't include the host when I'm logged in normally, adds it when I'm in a shell via sudo/doas, and colors it when I'm logged in via SSH.
Similarly, my prompt doesn't include the host when I'm logged in normally, adds it when I'm in a shell via sudo/doas, and colors it when I'm logged in via SSH.