[Git-commits] [grml/grml-etc-core] 71101e: tmux.conf: detect running as tmate and disable non...

Michael Prokop noreply at github.com
Fri Nov 25 11:33:09 CET 2022


  Branch: refs/heads/mika/tmate
  Home:   https://github.com/grml/grml-etc-core
  Commit: 71101e03cc0aed990544de518566a6fa7db4c6c0
      https://github.com/grml/grml-etc-core/commit/71101e03cc0aed990544de518566a6fa7db4c6c0
  Author: Michael Prokop <mika at grml.org>
  Date:   2022-11-25 (Fri, 25 Nov 2022)

  Changed paths:
    M etc/tmux.conf

  Log Message:
  -----------
  tmux.conf: detect running as tmate and disable non-supported features

tmux versions >=2.3 support the -q option for source-file to suppress
errors for nonexistent files. Even Debian/oldoldstable has tmux v2.3-4,
so this works nice everwhere, *except* for when invoking tmate, which is
a fork based on an old version of tmux, which then complains about:

| /etc/tmux.conf:75: usage: source-file path
| /etc/tmux.conf:36: usage: source-file path

Try to detect tmate from within the environment, and then enable
the configuration only when *not* running from within tmate.




More information about the Git-commits mailing list