mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-07 22:57:41 +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
|
||||
# point.
|
||||
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
|
||||
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
|
||||
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
|
||||
# point.
|
||||
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
|
||||
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
|
||||
elif [[ "$(id -u)" == "0" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user