aboutsummaryrefslogtreecommitdiff
path: root/base/tmux/status
diff options
context:
space:
mode:
Diffstat (limited to 'base/tmux/status')
-rwxr-xr-xbase/tmux/status2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/tmux/status b/base/tmux/status
index 6643d46..c67c232 100755
--- a/base/tmux/status
+++ b/base/tmux/status
@@ -39,7 +39,7 @@ if tmux showenv TMUX_SHOW_TASK &>/dev/null; then
elif tmux showenv TMUX_SHOW_HINT &>/dev/null; then
HINTF="$(dirname "$0")/hint"
HINTS="${HINTF}s"
- if [[ "$(find "$HINTF" -mmin +2)" ]]; then
+ if [[ ! -f "$HINTF" || "$(find "$HINTF" -mmin +2)" ]]; then
grep -v '^//' "$HINTS"* | shuf | head -n1 >"$HINTF"
fi