From 80605a739e842ce18410dd5f9ea1907be37929aa Mon Sep 17 00:00:00 2001 From: "Christophe Buffenoir (kirua)" Date: Thu, 18 Feb 2016 13:24:55 +0100 Subject: [PATCH] Add meteo --- common/.tmux.conf | 1 + common/.zshrc | 10 ++++++++++ update-home.sh | 5 +++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/common/.tmux.conf b/common/.tmux.conf index 0de3b7b..26f0ff1 100644 --- a/common/.tmux.conf +++ b/common/.tmux.conf @@ -16,6 +16,7 @@ set -g mouse-resize-pane on set -g history-limit 1000 +set -g lock-after-time 300 # THEME diff --git a/common/.zshrc b/common/.zshrc index 70b7bd2..b87bffc 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -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 +} diff --git a/update-home.sh b/update-home.sh index 4bb729b..e0a8f18 100755 --- a/update-home.sh +++ b/update-home.sh @@ -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