Switch TMUX check to FISH_UNIT_TESTS_RUNNING

Per discussion in https://github.com/fish-shell/fish-shell/commit/0c17210f056
This commit is contained in:
ridiculousfish 2019-02-01 14:42:13 -08:00
parent ff89c61afa
commit fd1908e973

View File

@ -239,7 +239,7 @@ function __fish_config_interactive -d "Initializations that should be performed
# - The keybindings (reading the sequence and triggering an event)
# - Any listeners (like the vi-cursor)
if set -q TMUX
and [ "$TERM" = screen ]
and not set -q FISH_UNIT_TESTS_RUNNING
function __fish_enable_focus --on-event fish_postexec
echo -n \e\[\?1004h
end