From 92ed64959726240f9af696507686c3a9fa97eead Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sat, 30 Nov 2019 15:49:06 +0100 Subject: [PATCH] made requirements explicit in both README.md and .tmux.conf --- .tmux.conf | 13 +++++++++++++ README.md | 5 +++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 03d1777..883038e 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1175,6 +1175,19 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim # # _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' +# return +# 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' +# return +# fi +# if ! command -v awk > /dev/null 2>&1; then +# tmux run -b 'tmux set display-time 3000 \; display "This configuration requires awk" \; set -u display-time' +# return +# fi +# # # see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard # if command -v reattach-to-user-namespace > /dev/null 2>&1; then # default_shell="$(tmux show -gv default-shell)" diff --git a/README.md b/README.md index e763c3d..470007d 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,9 @@ Installation Requirements: - - tmux **`>= 2.1`** running inside Linux, Mac, OpenBSD, Cygwin or WSL (Bash on - Ubuntu on Windows) + - tmux **`>= 2.1`** (soon `>= 2.4`) running inside Linux, Mac, OpenBSD, Cygwin + or WSL + - awk, perl and sed - outside of tmux, `$TERM` must be set to `xterm-256color` To install, run the following from your terminal: (you may want to backup your