Smile every time you sudo

Posted by the art of simplicity on Thursday, February 18, 2021

groot

If you want your terminal prompt to look like this every time you sodo, please continue reading. note: i did on ubuntu so for other flavor, file path might be slightly different

step 1. download this amazing ascii art text and move to /etc/sudoers.d/sudoers.lecture

❯ curl -O https://caferock.org/chris/groot.txt
❯ sudo cp groot.txt /etc/sudoers.d/sudoers.lecture

step 2. edit /etc/sudoers (or /etc/sudoers.d/privacy)

Defaults     lecture = always
Defaults     lecture_file = /etc/sudoers.d/sudoers.lecture    

Let’s see this magnificent art <3

# reset timestamp
❯ sudo -k  
# some sudo command
❯ sudo -l

Cheers!