Created
April 24, 2014 19:03
-
-
Save bingeboy/11265706 to your computer and use it in GitHub Desktop.
IP and weather bash profile
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
#Welcome Screen | |
echo "$(tput setaf 2) | |
`date +"%A, %e %B %Y, %X %Z"` | |
$(tput setaf 1)IP Addresses.......: $(tput setaf 6)`ipconfig getifaddr en0` and `wget -q -O - http://icanhazip.com/ | tail` | |
$(tput setaf 1)Weather............: $(tput setaf 3)Brooklyn `curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=211&LOCCODE=11211" | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p'` | |
$(tput sgr0)" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment