Random IASIP quote
Show a random quote from It's Always Sunny in Philadelphia in your terminal.
All credit to the person who made http://sunnyquotes.net
Bash:
Add this to your ~/.bashrc
echo $(curl -s http://sunnyquotes.net/q.php?random \
| jq -r '.sqQuote + " - " + .sqWho + " (" + .sqEp + ")"')
Powershell:
Add this to your Microsoft.PowerShell_profile.ps1
function Get-IASIP-Quote() {
$content = Invoke-WebRequest http://sunnyquotes.net/q.php?random `
| Select-Object -Expand Content | ConvertFrom-Json
$quote = $content.sqQuote
$ep = $content.sqEp
$author = $content.sqWho
Write-Host "$quote - $author ($ep)" -ForegroundColor yellow
}
Get-IASIP-Quote