Skip to content

Instantly share code, notes, and snippets.

@bingeboy
Created April 24, 2014 19:03
Show Gist options
  • Save bingeboy/11265706 to your computer and use it in GitHub Desktop.
Save bingeboy/11265706 to your computer and use it in GitHub Desktop.
IP and weather bash profile
#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