zsh-config/greet
Robert Morrison 5d1484881e
fix: add some compatibility options
this commit introduces the `has` function.
Now I can ensure that any command I want to alias or call is available
first.

This should allow the config to automatically slot in even where systems
aren't configured in the way I would expect
2022-12-05 21:29:10 +00:00

18 lines
568 B
Plaintext
Executable File

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