mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 13:01:21 -03:00
Try to make tmux-transient-prompt.fish more consistent
This commit is contained in:
committed by
Johannes Altmanninger
parent
07f0b1816e
commit
f075c58eb5
@@ -26,8 +26,9 @@ isolated-tmux send-keys C-u '
|
||||
function fish_prompt
|
||||
printf "\$ "
|
||||
end
|
||||
' C-l
|
||||
isolated-tmux send-keys Enter Enter
|
||||
'
|
||||
tmux-sleep
|
||||
isolated-tmux send-keys C-l Enter Enter
|
||||
tmux-sleep
|
||||
isolated-tmux capture-pane -p
|
||||
# CHECK: $
|
||||
@@ -43,8 +44,9 @@ isolated-tmux send-keys C-u C-l '
|
||||
printf "transient line%d\n" 1 2
|
||||
end
|
||||
end
|
||||
' C-l
|
||||
isolated-tmux send-keys Enter
|
||||
'
|
||||
tmux-sleep
|
||||
isolated-tmux send-keys C-l Enter
|
||||
tmux-sleep
|
||||
isolated-tmux capture-pane -p
|
||||
# CHECK: final line1
|
||||
@@ -63,8 +65,9 @@ isolated-tmux send-keys C-u C-l '
|
||||
echo "1> "
|
||||
end
|
||||
end
|
||||
' C-l
|
||||
isolated-tmux send-keys 'echo foo' Enter
|
||||
'
|
||||
tmux-sleep
|
||||
isolated-tmux send-keys C-l 'echo foo' Enter
|
||||
tmux-sleep
|
||||
isolated-tmux capture-pane -p
|
||||
# CHECK: 2> echo foo
|
||||
@@ -76,7 +79,7 @@ isolated-tmux capture-pane -p
|
||||
# final.
|
||||
isolated-tmux send-keys C-u C-l
|
||||
isolated-tmux send-keys 'echo foo \\' Enter
|
||||
isolated-tmux send-keys 'bar' Enter
|
||||
isolated-tmux send-keys bar Enter
|
||||
tmux-sleep
|
||||
isolated-tmux capture-pane -p
|
||||
# CHECK: 2> echo foo \
|
||||
|
||||
Reference in New Issue
Block a user