fish-shell/tests/checks/tmux-transient.fish

24 lines
499 B
Fish
Raw Normal View History

#RUN: %fish %s
#REQUIRES: command -v tmux
set -g isolated_tmux_fish_extra_args -C '
function fish_prompt
if set -q transient
printf "> "
set --erase transient
else
printf "> full prompt > "
end
end
bind enter "set transient true; commandline -f repaint execute"
'
isolated-tmux-start
isolated-tmux send-keys 'echo foo' Enter
tmux-sleep
isolated-tmux capture-pane -p
# CHECK: > echo foo
# CHECK: foo
# CHECK: > full prompt >