Skip to content

Instantly share code, notes, and snippets.

@thomaspeitz
Last active July 16, 2016 11:49
Show Gist options
  • Save thomaspeitz/1baf12f63c10913a147fdd355c83e357 to your computer and use it in GitHub Desktop.
Save thomaspeitz/1baf12f63c10913a147fdd355c83e357 to your computer and use it in GitHub Desktop.
Is pokemon Go ready in my country? ZSH Theme + Script
PROMPT='%F{green}%2c%F{blue} $(git_prompt_info) [%f '
RPROMPT='%F{red}`cat ~/.pokemon-go-status` %F{blue} %F{green}%D{%L:%M} %F{yellow}%D{%p}%f'
ZSH_THEME_GIT_PROMPT_PREFIX="%F{154}±|%f%F{124}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}%B☹ %b%F{154}|%f%{$reset_color%}%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
Place Theme: ~/.oh-my-zsh/themes/nanotech.zsh-theme
Start Script in your first terminal tab with your country name
bash script.sh Germany
Add to ~/.zshrc
ZSH_THEME="nanotech"
#!/bin/bash
country=$1
while true;
do
ready=$(curl -s http://ispokemongoavailableyet.com/ | grep -iA 2 $country | grep -c fa-check)
if [ "$ready" == "1" ]
then
echo "STOP YOUR WORK - POKEMON GO IS READY!!!!!!!!!!!!!!!!!!!!!!!!" > ~/.pokemon-go-status
else
echo "" > ~/.pokemon-go-status
fi
sleep 30
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment