From 67938c3ef3d8416a338c4f66f4570b9aa8bd0e16 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Mon, 6 Mar 2017 08:13:46 +0100 Subject: [PATCH] added share/bash-function.txt --- share/bash-function.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 share/bash-function.txt diff --git a/share/bash-function.txt b/share/bash-function.txt new file mode 100644 index 0000000..c573c95 --- /dev/null +++ b/share/bash-function.txt @@ -0,0 +1,5 @@ +wttr() +{ + # change Paris to your default location + curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Paris}" +}