mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-10-08 14:37:29 +02:00
{bash,zsh}rc: introduce bat for motivational-message.txt reading
This commit is contained in:
parent
8a8395173d
commit
79eedbf33f
@ -16,8 +16,8 @@ Aferoj emas funkcii sin mem... OM MANI PEME HUNG...
|
|||||||
# You are a perfect expression of perfect Love, here and now.
|
# You are a perfect expression of perfect Love, here and now.
|
||||||
# Illusions I & II - Richard Bach
|
# Illusions I & II - Richard Bach
|
||||||
|
|
||||||
"They say that I must learn to kill before I can feel safe. But I,
|
> They say that I must learn to kill before I can feel safe. But I,
|
||||||
I'd rather kill myself then turn into their slave."
|
> I'd rather kill myself then turn into their slave.
|
||||||
# The Rasmus: In the Shadows
|
# The Rasmus: In the Shadows
|
||||||
|
|
||||||
MEMENTO VIVERE! Advice, total nonsense or something between:
|
MEMENTO VIVERE! Advice, total nonsense or something between:
|
||||||
|
@ -168,8 +168,14 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
# Only print motivational phrases if username is aminda or mikaela or deck
|
# Only print motivational phrases if username is aminda or mikaela or deck
|
||||||
if [[ $(whoami) == aminda ]] || [[ $(whoami) == mikaela ]] || [[ $(whoami) == deck ]]; then
|
if [[ $(whoami) == aminda ]] || [[ $(whoami) == mikaela ]] || [[ $(whoami) == deck ]]; then
|
||||||
if [ -f $HOME/.shell-things/.mikaela/motivational-message.txt ]; then
|
if [ -f $HOME/.shell-things/.mikaela/motivational-message.txt ]; then
|
||||||
|
# Confusion between bat and batcula is not a concern at this
|
||||||
|
# point.
|
||||||
|
if hash bat 2> /dev/null; then
|
||||||
|
bat -l markdown -f --style=plain $HOME/.shell-things/.mikaela/motivational-message.txt | \grep -v '#'
|
||||||
|
else
|
||||||
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.txt | grep -v '#'
|
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.txt | grep -v '#'
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
elif [[ "$(id -u)" == "0" ]]; then
|
elif [[ "$(id -u)" == "0" ]]; then
|
||||||
# This comes from Charybdis IRCd
|
# This comes from Charybdis IRCd
|
||||||
(printf "\nWe would like to take this moment to remind you that we accept\nabsolutely no liability for the insanity you're about to endure.\n\n")
|
(printf "\nWe would like to take this moment to remind you that we accept\nabsolutely no liability for the insanity you're about to endure.\n\n")
|
||||||
|
6
rc/zshrc
6
rc/zshrc
@ -64,8 +64,14 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
# Only print motivational phrases if username is aminda or mikaela or deck
|
# Only print motivational phrases if username is aminda or mikaela or deck
|
||||||
if [[ $(whoami) == aminda ]] || [[ $(whoami) == mikaela ]] || [[ $(whoami) == deck ]]; then
|
if [[ $(whoami) == aminda ]] || [[ $(whoami) == mikaela ]] || [[ $(whoami) == deck ]]; then
|
||||||
if [ -f $HOME/.shell-things/.mikaela/motivational-message.txt ]; then
|
if [ -f $HOME/.shell-things/.mikaela/motivational-message.txt ]; then
|
||||||
|
# Confusion between bat and batcula is not a concern at this
|
||||||
|
# point.
|
||||||
|
if hash bat 2> /dev/null; then
|
||||||
|
bat -l markdown -f --style=plain $HOME/.shell-things/.mikaela/motivational-message.txt | \grep -v '#'
|
||||||
|
else
|
||||||
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.txt | grep -v '#'
|
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.txt | grep -v '#'
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
elif [[ "$(id -u)" == "0" ]]; then
|
elif [[ "$(id -u)" == "0" ]]; then
|
||||||
# This comes from Charybdis IRCd
|
# This comes from Charybdis IRCd
|
||||||
(printf "\nWe would like to take this moment to remind you that we accept\nabsolutely no liability for the insanity you're about to endure.\n\n")
|
(printf "\nWe would like to take this moment to remind you that we accept\nabsolutely no liability for the insanity you're about to endure.\n\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user