From e23409813841c425acd2e8e12f838534f723021f Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 23 May 2024 19:45:41 +0300 Subject: [PATCH] {bash,zsh}rc: root can have a little motivation as a treat --- rc/bashrc | 9 +++++++-- rc/zshrc | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index d0995d17..b7bd8cca 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -160,8 +160,13 @@ if [[ $(whoami) == aminda ]] || [[ $(whoami) == mikaela ]]; then #(printf "⚧ Your adventure begins in the dead of night.\n⚧ Your road won't be easy, but a rising sun awaits your journey's end.\n\n") #(printf "⚧ The darker than black is, the brighter the moon is\n") (printf "⚧ Agoraphobia/social anxiety advice: \n\tAct like you belong! Like you own the place, but keep everyone comfortable! Remember the Spotlight Effect!\n \t\tMaybe even wear hi-viz so you really belong anywhere 😝\n\t\t\tAnd as always, fake it till you make it!\n") - # (printf "\n⚧\tThat's what I am, that's what I'll always be\n⚧\tI don't wanna be silent 'cause this is my destiny\n⚧\tThat's what I was, that's what feels good to me\n⚧\tAnd nothing will change me, that's what I'm meant to be.\n⚧\t\t­—Conchita Wurst: That's What I Am\n\n") - #(printf "https://en.m.wikipedia.org/wiki/First_they_came_...#Text\n") +# (printf "\n⚧\tThat's what I am, that's what I'll always be\n⚧\tI don't wanna be silent 'cause this is my destiny\n⚧\tThat's what I was, that's what feels good to me\n⚧\tAnd nothing will change me, that's what I'm meant to be.\n⚧\t\t­—Conchita Wurst: That's What I Am\n\n") +#(printf "https://en.m.wikipedia.org/wiki/First_they_came_...#Text\n") +elif [[ "$(id -u)" == "0" ]]; then + # This comes from Charybdis IRCd + (printf "\nWe would like to take this moment to remind you that we accept absolutely no liability for the insanity you're about to endure.\n\n") + # And this from sudo + the general advice for auditability + (printf "We trust you have received the usual lecture from the local System\nAdministrator. It usually boils down to these three things:\n\n\t#1) Respect the privacy of others.\n\t#2) Think before you type.\n\t#3) With great power comes great responsibility.\n\nAdditionally you shouldn't be logging in as root directly.\n\n") fi # fix dircolors for Selenized https://github.com/jan-warchol/selenized/blob/master/other-apps/dircolors/README.md diff --git a/rc/zshrc b/rc/zshrc index e164160f..a435be01 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -117,8 +117,13 @@ if [[ $(whoami) == aminda ]] || [[ $(whoami) == mikaela ]]; then #(printf "⚧ Your adventure begins in the dead of night.\n⚧ Your road won't be easy, but a rising sun awaits your journey's end.\n\n") #(printf "⚧ The darker than black is, the brighter the moon is\n") (printf "⚧ Agoraphobia/social anxiety advice: \n\tAct like you belong! Like you own the place, but keep everyone comfortable! Remember the Spotlight Effect!\n \t\tMaybe even wear hi-viz so you really belong anywhere 😝\n\t\t\tAnd as always, fake it till you make it!\n") - # (printf "\n⚧\tThat's what I am, that's what I'll always be\n⚧\tI don't wanna be silent 'cause this is my destiny\n⚧\tThat's what I was, that's what feels good to me\n⚧\tAnd nothing will change me, that's what I'm meant to be.\n⚧\t\t­—Conchita Wurst: That's What I Am\n\n") - #(printf "https://en.m.wikipedia.org/wiki/First_they_came_...#Text\n") +# (printf "\n⚧\tThat's what I am, that's what I'll always be\n⚧\tI don't wanna be silent 'cause this is my destiny\n⚧\tThat's what I was, that's what feels good to me\n⚧\tAnd nothing will change me, that's what I'm meant to be.\n⚧\t\t­—Conchita Wurst: That's What I Am\n\n") +#(printf "https://en.m.wikipedia.org/wiki/First_they_came_...#Text\n") +elif [[ "$(id -u)" == "0" ]]; then + # This comes from Charybdis IRCd + (printf "\nWe would like to take this moment to remind you that we accept absolutely no liability for the insanity you're about to endure.\n\n") + # And this from sudo + the general advice for auditability + (printf "We trust you have received the usual lecture from the local System\nAdministrator. It usually boils down to these three things:\n\n\t#1) Respect the privacy of others.\n\t#2) Think before you type.\n\t#3) With great power comes great responsibility.\n\nAdditionally you shouldn't be logging in as root directly.\n\n") fi # fix dircolors for Selenized https://github.com/jan-warchol/selenized/blob/master/other-apps/dircolors/README.md