fork/fish-shell

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

kertyInstead of variable pass args to tmux fish directlye22d90cba

master
863 B29 linesraw
1#RUN: %fish %s
2#REQUIRES: command -v tmux
3
4isolated-tmux-start -C '
5    bind alt-delete backward-kill-token
6    bind alt-left backward-token
7    bind alt-right forward-token
8    set fish_autosuggestion_enabled 0
9'
10
11isolated-tmux send-keys "function prepend; commandline --cursor 0; commandline -i echo; end" Enter
12isolated-tmux send-keys "bind ctrl-g prepend" Enter
13isolated-tmux send-keys C-l
14isolated-tmux send-keys 'printf'
15isolated-tmux send-keys C-g Space
16tmux-sleep
17isolated-tmux capture-pane -p
18# CHECK: prompt 2> echo printf
19
20isolated-tmux send-keys C-u C-k C-l 'echo ; foo &| ' M-delete 'bar | baz'
21tmux-sleep
22isolated-tmux capture-pane -p
23# CHECK: prompt 2> echo ; bar | baz
24
25# To-do: maybe include the redirection?
26isolated-tmux send-keys C-u C-l 'echo >ooba' M-left f M-right r
27tmux-sleep
28isolated-tmux capture-pane -p
29# CHECK: prompt 2> echo >foobar