tmux-kanagawa/sleep_weather.sh
Dane Williams f929834adc sdfsd
2020-03-15 12:59:20 -07:00

20 lines
269 B
Bash
Executable file

#/usr/bin/env bash
#wrapper script for running weather on interval
main()
{
while true
do
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
if tmux has-session &> /dev/null
then
sleep 1000
else
break
fi
done
}
#run main driver function
main