2021-08-29 07:44:22 +00:00
|
|
|
#RUN: %fish %s
|
2021-07-03 11:57:21 +00:00
|
|
|
#REQUIRES: command -v tmux
|
|
|
|
|
2021-08-29 07:44:22 +00:00
|
|
|
set -g isolated_tmux_fish_extra_args -C '
|
2021-07-03 11:57:21 +00:00
|
|
|
function fish_prompt; printf "prompt $status_generation> <$prompt_var> "; end
|
|
|
|
function on_prompt_var --on-variable prompt_var
|
|
|
|
commandline -f repaint
|
|
|
|
end
|
|
|
|
'
|
|
|
|
|
2021-08-29 07:44:22 +00:00
|
|
|
isolated-tmux capture-pane -p
|
2021-07-03 11:57:21 +00:00
|
|
|
# CHECK: prompt 0> <>
|
|
|
|
|
2021-08-29 07:44:22 +00:00
|
|
|
set -q CI && set sleep sleep 10
|
2021-07-03 11:57:21 +00:00
|
|
|
set -U prompt_var changed
|
|
|
|
$sleep
|
2021-08-29 07:44:22 +00:00
|
|
|
isolated-tmux capture-pane -p
|
2021-07-03 11:57:21 +00:00
|
|
|
# CHECK: prompt 0> <changed>
|