dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit bca99b60b174bc287b9f396b3262417c4eec4ddc
parent bba7c0f4a5b919a249c99d4179f1c5f5f43a1416
Author: Alexei Syssoyev <34723727+AlexSyssoyev@users.noreply.github.com>
Date:   Sat, 30 May 2020 07:19:12 -0300

Fix sed to hide news when zero (#661)


Diffstat:
M.local/bin/statusbar/news | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news @@ -14,4 +14,4 @@ case $BLOCK_BUTTON in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac - cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print "📰" $1}' | sed 's/^📰 0$//g')$(cat ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/.update 2>/dev/null)" + cat /tmp/newsupdate 2>/dev/null || echo "$(newsboat -x print-unread | awk '{ print "📰" $1}' | sed 's/^📰0$//g')$(cat ${XDG_CONFIG_HOME:-$HOME/.config}/newsboat/.update 2>/dev/null)"