From 8e3b90c6c8d0eea022cbcb007dc518503a823765 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Mon, 29 Apr 2024 18:08:22 +0200 Subject: [PATCH] made perl's Time::HiRes a strong requirement, resolves #739 --- .tmux.conf | 3 +++ README.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 4b3eb40..db9b637 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1675,6 +1675,9 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # if ! command -v perl > /dev/null 2>&1; then # tmux run -b 'tmux set display-time 3000 \; display "This configuration requires perl" \; set -u display-time \; run "sleep 3" \; kill-server' # return +# if ! perl -MTime::HiRes -e1 > /dev/null 2>&1; then +# tmux run -b 'tmux set display-time 3000 \; display "This configuration requires perl Time::HiRes" \; set -u display-time \; run "sleep 3" \; kill-server' +# fi # fi # if ! command -v sed > /dev/null 2>&1; then # tmux run -b 'tmux set display-time 3000 \; display "This configuration requires sed" \; set -u display-time \; run "sleep 3" \; kill-server' diff --git a/README.md b/README.md index 6ed622c..82eaeec 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Installation Requirements: - tmux **`>= 2.6`** running inside Linux, Mac, OpenBSD, Cygwin or WSL - - awk, perl and sed + - awk, perl (with Time::HiRes support) and sed - outside of tmux, `$TERM` must be set to `xterm-256color` ⚠️ Before installing, you may want to backup your existing configuration.