made requirements explicit in both README.md and .tmux.conf

This commit is contained in:
Gregory Pakosz 2019-11-30 15:49:06 +01:00
parent 6815beef4f
commit 92ed649597
2 changed files with 16 additions and 2 deletions

View File

@ -1175,6 +1175,19 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
# #
# _apply_configuration() { # _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 # # see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
# if command -v reattach-to-user-namespace > /dev/null 2>&1; then # if command -v reattach-to-user-namespace > /dev/null 2>&1; then
# default_shell="$(tmux show -gv default-shell)" # default_shell="$(tmux show -gv default-shell)"

View File

@ -10,8 +10,9 @@ Installation
Requirements: Requirements:
- tmux **`>= 2.1`** running inside Linux, Mac, OpenBSD, Cygwin or WSL (Bash on - tmux **`>= 2.1`** (soon `>= 2.4`) running inside Linux, Mac, OpenBSD, Cygwin
Ubuntu on Windows) or WSL
- awk, perl and sed
- outside of tmux, `$TERM` must be set to `xterm-256color` - outside of tmux, `$TERM` must be set to `xterm-256color`
To install, run the following from your terminal: (you may want to backup your To install, run the following from your terminal: (you may want to backup your