fork/fish-shell

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

Johannes AltmanningerUse globals for color variables, react to light/dark mode190d367bc

master
771 B37 linesraw
1#RUN: %fish %s
2#REQUIRES: command -v tmux
3
4isolated-tmux-start -C '
5    set -g i 0
6    function fish_prompt
7        set -g i (math $i + 1)
8        printf "$i.%s \n" (seq $i)
9    end
10    history append "\
11if true
12    echo hello1
13    echo hello2
14    echo hello3
15    echo hello4
16    echo hello5
17    echo hello6
18    echo hello7
19    echo hello8
20end"
21'
22
23isolated-tmux send-keys Enter
24tmux-sleep
25isolated-tmux send-keys i
26tmux-sleep
27isolated-tmux capture-pane -p | string replace -r ^ ^
28# CHECK: ^1.1
29# CHECK: ^2.1
30# CHECK: ^2.2 if true
31# CHECK: ^            echo hello1
32# CHECK: ^            echo hello2
33# CHECK: ^            echo hello3
34# CHECK: ^            echo hello4
35# CHECK: ^            echo hello5
36# CHECK: ^            echo hello6
37# CHECK: ^            echo hello7…