Add meteo

This commit is contained in:
Christophe Buffenoir (kirua) 2016-02-18 13:24:55 +01:00
parent 734cd6043a
commit 80605a739e
3 changed files with 14 additions and 2 deletions

View file

@ -16,6 +16,7 @@ set -g mouse-resize-pane on
set -g history-limit 1000
set -g lock-after-time 300
# THEME

View file

@ -143,4 +143,14 @@ alias vmanfr='man -P "espeak -v mb/mb-fr1 -p30 -s 150"'
alias vmanen='man -P "espeak -v mb/mb-en1 -p30 -s 150"'
alias vman=vmanen
alias less='less -R'
eval $(thefuck --alias)
meteo() {
if [ -z $1 ]; then
/usr/bin/curl -4 "http://wttr.in/toulouse" | less
else
/usr/bin/curl -4 "http://wttr.in/$1" | less
fi
}

View file

@ -22,8 +22,9 @@ pip3 install --upgrade --user jedi
pip3 install --upgrade --user vdirsyncer
pip3 install --upgrade --user khal
pip3 install --upgrade --user git+git://github.com/Lokaltog/powerline
pip install --upgrade --user git+git://github.com/Lokaltog/powerline
pip install --upgrade --user pyCardDav
pip2 install --upgrade --user git+git://github.com/Lokaltog/powerline
pip2 install --upgrade --user pyCardDav
pip3 install --upgrade --user pyCardDav
mkdir -p ~/.config/pycard
curl https://raw.github.com/geier/pycarddav/master/pycard.conf.sample > ~/.config/pycard/pycard.conf.sample