From acc2a298043221748089d4523608dd48eecd7d55 Mon Sep 17 00:00:00 2001 From: committer Date: Sun, 26 May 2024 19:00:20 -0500 Subject: [PATCH] u --- dots/bash/.bashrc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index 5209914..dda8f98 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -79,15 +79,14 @@ rshift() { if [ ${cmd} == "info" ] ; then echo "{morning, day, evening, night, bedtime}" -# elif [ ${cmd} == "show" ] || -# [ ${cmd} == "display" ] -# ; then -# if [ -f "${temperature_file}" ] ; then -# temperature=$(cat /tmp/temperature.txt) -# else -# temperature=n/a -# fi -# echo "${temperature}K" + elif [ ${cmd} == "show" ] || + [ ${cmd} == "display" ] ; then + if [ -f "${temperature_file}" ] ; then + temperature=$(cat /tmp/temperature.txt) + else + temperature=n/a + fi + echo "${temperature}K" elif [ ${cmd} == "disable" ] || [ ${cmd} == "off" ] ; then