added share/bash-function.txt
This commit is contained in:
parent
dc228f06c7
commit
67938c3ef3
1 changed files with 5 additions and 0 deletions
5
share/bash-function.txt
Normal file
5
share/bash-function.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
wttr()
|
||||
{
|
||||
# change Paris to your default location
|
||||
curl -H "Accept-Language: ${LANG%_*}" wttr.in/"${1:-Paris}"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue