zsh-config/greet
Robert Morrison 169cf0c209
feat(greet): Add TODO.md
Automatically display `~/TODO.md` if glow is installed
2024-02-19 15:16:14 +00:00

19 lines
615 B
Plaintext

has colours.sh && colours.sh
echo '╭───────────╮'
echo '│ Welcome!! │'
echo '╰───────────╯'
date
if [ -d "$HOME/tmp" ]; then
if [ -f "$HOME/tmp/KEEPTMP" ] || [ -f "$HOME/.cleanupResult" ]; then
printf "\033[31m\e[1m\e[5mYou have files in your tmp directory\e[0m\n"
exa -alhT ~/tmp || tree ~/tmp
if [ -f "$HOME/.cleanupResult" ]; then
echo "ISSUE WAS:"
cat "$HOME/.cleanupResult"
fi
fi
fi
has randomVerse && randomVerse
has colours.sh && colours.sh
has glow && [ -f ~/TODO.md ] && glow ~/TODO.md