mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
1c4bb214d2
This lacks the tmux-256color terminfo entry, leading to spurious warnings like warning: Could not set up terminal. <= no check matches warning: TERM environment variable set to \'tmux-256color\'. <= no check matches warning: Check that this terminal type is supported on this system. <= no check matches warning: Using fallback terminal type \'ansi\'. <= no check matches
25 lines
638 B
Fish
25 lines
638 B
Fish
#RUN: %fish %s
|
|
#REQUIRES: command -v tmux
|
|
# Github Actions currently (2022-06-09)
|
|
# doesn't include the tmux-256color terminfo on macOS.
|
|
# So we skip tmux tests there.
|
|
#REQUIRES: test -z "$CI" -o "$(uname)" != Darwin
|
|
|
|
set -g isolated_tmux_fish_extra_args -C '
|
|
function fish_prompt; printf "prompt $status_generation> <$prompt_var> "; end
|
|
function on_prompt_var --on-variable prompt_var
|
|
commandline -f repaint
|
|
end
|
|
'
|
|
|
|
isolated-tmux-start
|
|
|
|
isolated-tmux capture-pane -p
|
|
# CHECK: prompt 0> <>
|
|
|
|
set -q CI && set sleep sleep 10
|
|
set -U prompt_var changed
|
|
tmux-sleep
|
|
isolated-tmux capture-pane -p
|
|
# CHECK: prompt 0> <changed>
|