summaryrefslogtreecommitdiff
path: root/newsboatreload.sh
blob: 2abcddd9034daa9b4c22cc15839a624dc35a3dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

while true; do
    kill $(pidof newsboat)
    rm $XDG_CONFIG_HOME/newsboat/queue
    $TERMINAL -e newsboat
    if [[ $? == 0 ]] ; then
        exec newsboat && break
    else
        break
    fi
done