added share/bash-function.txt

This commit is contained in:
Igor Chubin 2017-03-06 08:13:46 +01:00
parent dc228f06c7
commit 67938c3ef3

5
share/bash-function.txt Normal file
View file

@ -0,0 +1,5 @@
wttr()
{
# change Paris to your default location
curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Paris}"
}