dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 277584522d154bcee74ad69d49e0cbec7a8712ff
parent d312f1d10163f7a41139f2c421495917947610ae
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Mon,  5 Mar 2018 20:06:45 -0500

Add AAAP sky forecast

Diffstat:
Mlinks/.zshrc | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -144,6 +144,19 @@ function forecast { echo $tmpfile fi } +function forecastsky { + local tmpfile=`mktemp`.png + curl --location \ + 'http://www.cleardarksky.com/c/AAAP1_NJcsk.gif?c=468010'\ + --output $tmpfile + if command -v open &>/dev/null; then + open $tmpfile + elif command -v xdg-open &>/dev/null; then + xdg-open $tmpfile + else + echo $tmpfile + fi +} function define { curl --silent dict://dict.org/d:$1 } function news {