From 7ee6146d67477552e0cee324678904bf762d4b01 Mon Sep 17 00:00:00 2001 From: lub Date: Thu, 4 Nov 2021 17:53:03 +0100 Subject: [PATCH] add wttr alias --- dotfiles/bash/.bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index a57458e..c177e9c 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -41,6 +41,10 @@ alias pp='git pull -r && git push' alias statdiff='git status && git diff --staged' alias gcode='git pull -r && code . && exit' +function wttr { + curl -v "https://wttr.in/$1" +} + # workaround for missing alacritty terminfo on remote terminals # https://github.com/alacritty/alacritty/issues/3360#issuecomment-588441023 alias ssh='TERM=xterm-256color ssh'