diff --git a/.config/git/config b/.config/git/config new file mode 100644 index 000000000..7c76b81b3 --- /dev/null +++ b/.config/git/config @@ -0,0 +1,12 @@ +[init] + defaultBranch = main +[push] + recurseSubmodules = check +[pull] + rebase = false +[submodule] + recurse = true +[credential] + helper = store +[include] + path = ~/.config/git/host-setup diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index 7922066f3..6274e622a 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -16,8 +16,8 @@ weatheropts="?FA" emojiopts="?FA&format=%c" getforecast() { - curl -sf --retry 5 "$url$weatheropts" >"$weatherfile" || exit 1 - curl -sf "$url$emojiopts" --retry 5 | sed 's/☀️//;s/☁️//;s/⛅️//;s/⛈//;s/✨//;s/❄️//;s/🌦//;s/🌧//;s/🌨//;s/🌩//;s/🌫//;' | cut -d ' ' -f 1 >"$emojifile" || exit 1 + curl -sfL --retry 5 "$url$weatheropts" >"$weatherfile" || return 1 + curl -sfL "$url$emojiopts" --retry 5 | sed 's/☀️//;s/☁️//;s/⛅️//;s/⛈//;s/✨//;s/❄️//;s/🌦//;s/🌧//;s/🌨//;s/🌩//;s/🌫//;' | cut -d ' ' -f 1 >"$emojifile" || return 1 } fresh() { [ -s "$weatherfile" ] && [ "$(stat -c %y "$weatherfile" 2>/dev/null | cut -d' ' -f1)" = "$(date '+%Y-%m-%d')" ]