-
-
Save quells/c08fde9cd9c81f069a3e to your computer and use it in GitHub Desktop.
This file contains 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 | |
alias whereami="get-location 2> /dev/null | sed -e 's/.*<\(.*\)>.*/\1/' | sed -e 's/\(.*\)/http:\/\/maps.googleapis.com\/maps\/api\/geocode\/json\?latlng\=\1\&sensor\=false/' | xargs curl -Ss | grep 'formatted_address' | head -n 1 | sed -e 's/[ \t]*\"formatted_address\" : \"\(.*\)\",/\1/'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ttscoff:
Condensed to a single line for inclusion in .bash_profile.