mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:12:08 +08:00
Fix the expect tests under tmux by inspecting TERM
We were checking for the $TMUX variable to determine if we were running under tmux. However when running the tests, the terminal becomes expect, even though the TMUX variable is still set, so we spew tmux-isms at expect. Check the value of $TERM for 'screen'.
This commit is contained in:
parent
a2aab24db7
commit
0c17210f05
|
@ -239,6 +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 ]
|
||||
function __fish_enable_focus --on-event fish_postexec
|
||||
echo -n \e\[\?1004h
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user