Skip to content

Instantly share code, notes, and snippets.

@alexey-goloburdin
Created July 17, 2025 17:55
Show Gist options
  • Select an option

  • Save alexey-goloburdin/87a5819d16271dd3c6d736a21c81e843 to your computer and use it in GitHub Desktop.

Select an option

Save alexey-goloburdin/87a5819d16271dd3c6d736a21c81e843 to your computer and use it in GitHub Desktop.

Revisions

  1. alexey-goloburdin created this gist Jul 17, 2025.
    6 changes: 6 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    if command -v curl &> /dev/null; then
    echo "📝 Цитата дня:\n"
    quote=$(curl -s https://quotes.to.digital/api/random | grep -o '"quote":"[^"]*"' | sed 's/"quote":"//;s/"$//' | sed 's/\\n/ /g' | tr -d '\n\r')
    echo "«$quote»" | fold -w 120 -s
    echo ""
    fi