mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-10-13 17:17:26 +02:00
{bash,zsh}rc: pass the motivational message into uniq -u
This commit is contained in:
parent
f0a79ee704
commit
ffa526acd5
@ -171,9 +171,9 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
# Confusion between bat and batcula is not a concern at this
|
# Confusion between bat and batcula is not a concern at this
|
||||||
# point.
|
# point.
|
||||||
if hash bat 2> /dev/null; then
|
if hash bat 2> /dev/null; then
|
||||||
bat --force-colorization --italic-text=always --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#'
|
bat --force-colorization --italic-text=always --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#' | uniq -u
|
||||||
else
|
else
|
||||||
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.md | grep -v '#'
|
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.md | grep -v '#' | uniq -u
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ "$(id -u)" == "0" ]]; then
|
elif [[ "$(id -u)" == "0" ]]; then
|
||||||
|
4
rc/zshrc
4
rc/zshrc
@ -67,9 +67,9 @@ if hash lsb_release 2> /dev/null; then
|
|||||||
# Confusion between bat and batcula is not a concern at this
|
# Confusion between bat and batcula is not a concern at this
|
||||||
# point.
|
# point.
|
||||||
if hash bat 2> /dev/null; then
|
if hash bat 2> /dev/null; then
|
||||||
bat --force-colorization --italic-text=always --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#'
|
bat --force-colorization --italic-text=always --style=plain $HOME/.shell-things/.mikaela/motivational-message.md | \grep -v '#' | uniq -u
|
||||||
else
|
else
|
||||||
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.md | grep -v '#'
|
tail -n +1 $HOME/.shell-things/.mikaela/motivational-message.md | grep -v '#' | uniq -u
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ "$(id -u)" == "0" ]]; then
|
elif [[ "$(id -u)" == "0" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user