Updated dotfiles-zsh

Added random quote lines directly to .zshrc, updated README, commented create-links and removed separate quote script
This commit is contained in:
2025-04-07 18:56:44 -04:00
parent dd6646cf40
commit a192f828af
4 changed files with 23 additions and 43 deletions

21
.zshrc
View File

@@ -33,7 +33,26 @@ setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording en
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
setopt HIST_BEEP # Beep when accessing nonexistent history.
$HOME/dotfiles-zsh/get-quote.sh
# Display Random Quote
if command -v curl >/dev/null 2>&1; then
QUOTE=$(curl -s https://files.planethawleywood.com/quotes.txt)
if [ -n "$QUOTE" ]; then
if command -v shuf >/dev/null 2>&1; then
QUOTE=$(echo "$QUOTE" | shuf -n 1)
fi
if command -v cowsay >/dev/null 2>&1; then
if command -v lolcat >/dev/null 2>&1; then
echo "$QUOTE" | cowsay -f tux | lolcat
else
echo "$QUOTE" | cowsay -f tux
fi
elif command -v lolcat >/dev/null 2>&1; then
echo "$QUOTE" | lolcat
else
echo "$QUOTE"
fi
fi
fi
# Instant Prompt Preamble
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.