diff options
Diffstat (limited to 'base/tmux')
-rwxr-xr-x | base/tmux/status | 2 |
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 |