1
0
Fork 0
mirror of synced 2024-12-22 06:41:07 -05:00

made perl's Time::HiRes a strong requirement, resolves #739

This commit is contained in:
Gregory Pakosz 2024-04-29 18:08:22 +02:00
parent 03c9f40e6b
commit 8e3b90c6c8
2 changed files with 4 additions and 1 deletions

View file

@ -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'

View file

@ -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.