fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Peter AmmonMake the tmux-history-search2 test more reliableaa5ecd0ef

master
1.2 KiB45 linesraw
1#RUN: fish=%fish %fish %s
2#REQUIRES: command -v tmux
3#REQUIRES: test -z "$CI"
4
5isolated-tmux-start
6isolated-tmux send-keys ': 1' Enter
7isolated-tmux send-keys ': ' M-Up M-Down M-Up M-Up M-Up M-Down Enter
8tmux-sleep
9isolated-tmux send-keys 'echo still alive' Enter
10tmux-sleep
11isolated-tmux capture-pane -p
12# CHECK: prompt 0> : 1
13# CHECK: prompt 1> : 1
14# CHECK: prompt 2> echo still alive
15# CHECK: still alive
16# CHECK: prompt 3>
17
18isolated-tmux send-keys 'complete : -xa "foobar foobaz"' Enter
19tmux-sleep
20isolated-tmux send-keys C-l ': fooba' Enter
21tmux-sleep
22isolated-tmux send-keys C-p Tab
23tmux-sleep
24isolated-tmux capture-pane -p
25# CHECK: prompt 4> : fooba
26# CHECK: prompt 5> : fooba
27# CHECK: foobar  foobaz
28
29isolated-tmux send-keys C-u C-l 'read' Enter
30tmux-sleep
31isolated-tmux send-keys read-input Enter
32tmux-sleep
33isolated-tmux send-keys 'set fish_history' Enter
34tmux-sleep
35isolated-tmux send-keys 'true some command; read' Enter
36tmux-sleep
37isolated-tmux send-keys C-p
38tmux-sleep
39isolated-tmux capture-pane -p
40# CHECK: prompt 5> read
41# CHECK: read> read-input
42# CHECK: read-input{{⏎|¶|\^J}}
43# CHECK: prompt 6> set fish_history
44# CHECK: prompt 6> true some command; read
45# CHECK: read> read-input