Last active
July 16, 2016 11:49
-
-
Save thomaspeitz/1baf12f63c10913a147fdd355c83e357 to your computer and use it in GitHub Desktop.
Is pokemon Go ready in my country? ZSH Theme + Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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