fork/fish-shell

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

kertyInstead of variable pass args to tmux fish directlye22d90cba

master
530 B16 linesraw
1#RUN: %fish %s
2#REQUIRES: command -v tmux
3
4isolated-tmux-start -C '
5    function fish_prompt; echo \'$ \'; end
6    bind ctrl-g "commandline -i \'echo \'(printf %0(math \$COLUMNS - (string length \'\$ echo \'))d 0)"
7'
8
9isolated-tmux send-keys C-g Enter
10tmux-sleep
11isolated-tmux capture-pane -p | awk 'NR <= 4 {print NR ":" $0}'
12
13# CHECK: 1:$ echo 0000000000000000000000000000000000000000000000000000000000000000000000000
14# CHECK: 2:0000000000000000000000000000000000000000000000000000000000000000000000000
15# CHECK: 3:$
16# CHECK: 4: