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:
21
.zshrc
21
.zshrc
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user