Skip to content

Instantly share code, notes, and snippets.

@yxqsnz
Created August 12, 2022 00:58
Show Gist options
  • Save yxqsnz/adf8aad9bfaa8b1784b41dba00a4543f to your computer and use it in GitHub Desktop.
Save yxqsnz/adf8aad9bfaa8b1784b41dba00a4543f to your computer and use it in GitHub Desktop.
#/usr/bin/env bash
function cleanup() {
tput cnorm
}
trap cleanup EXIT
printf "\e[35m שּ | \e[32mAyo!\e[0m\n"
tput civis
printf "\e[35m  | Please wait [ ]\e[0m\r"
URL=$(curl -s https://purrbot.site/api/img/sfw/hug/gif | jq -r .link)
printf "\e[35m  | Please wait [= ]\e[0m\r"
TARGET=$(mktemp --suffix .hug.gif)
curl -s ${URL} > $TARGET
printf "\e[35m  | Please wait [== ]\e[0m\r"
xdg-open $TARGET >/dev/null 2>/dev/null
printf "\e[35m  | Please wait [===]\e[0m\r"
echo -e "\e[32m  \e[35m| Don't worry. It's safe now. :>\e[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment