5 ms·
Perhaps I'm a bash noob, but when I try to paste that in my shell, it complains about a syntax error near `{curl`. Am I doing something wrong?
by gknoy 11y ago
Perhaps I'm a bash noob, but when I try to paste that in my shell, it complains about a syntax error near `{curl`. Am I doing something wrong?
- cocoflunchy 11y agoThere are spacing issues for me. Try function weather() { curl -s "http://api.openweathermap.org/data/2.5/weather?q=$1&units=metric" | jq .main.temp | figlet -kcf big ;}
- rnhmjoj 11y agoI wrote this in zsh. It seems in bash you need to add a space before the bracket