commit
cbf738b183
5 changed files with 10 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
data/weather.txt
|
0
data/.gitkeep
Normal file
0
data/.gitkeep
Normal file
|
@ -1 +0,0 @@
|
||||||
Loading...
|
|
|
@ -104,6 +104,11 @@ main()
|
||||||
# status bar
|
# status bar
|
||||||
tmux set-option -g status-style "bg=${gray},fg=${white}"
|
tmux set-option -g status-style "bg=${gray},fg=${white}"
|
||||||
|
|
||||||
|
# wait unit data/weather.txt exists just to avoid errors
|
||||||
|
# this should almost never need to wait unless something unexpected occurs
|
||||||
|
while [ ! -f $current_dir/../data/weather.txt ]; do
|
||||||
|
sleep 0.01
|
||||||
|
done
|
||||||
|
|
||||||
# Powerline Configuration
|
# Powerline Configuration
|
||||||
if $show_powerline; then
|
if $show_powerline; then
|
||||||
|
|
|
@ -19,6 +19,10 @@ main()
|
||||||
|
|
||||||
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
if [ ! -f $current_dir/../data/weather.txt ]; then
|
||||||
|
printf "Loading..." > $current_dir/../data/weather.txt
|
||||||
|
fi
|
||||||
|
|
||||||
$current_dir/weather.sh > $current_dir/../data/weather.txt
|
$current_dir/weather.sh > $current_dir/../data/weather.txt
|
||||||
|
|
||||||
while tmux has-session &> /dev/null
|
while tmux has-session &> /dev/null
|
||||||
|
|
Loading…
Reference in a new issue