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