4

I'm aware of chain Fish commands via && or || but I'm willing to chain a set of commands

Code

env git clone --depth=1 https://github.com/rafaelrinaldi/theme-pure.git; or {
    printf "Error: git clone of theme-pure repo failed\n"
    exit 1
}

1 Answers1

4

You need to use begin and end keywords to solve this (thanks to glenn jackman comment):

env git clone --depth=1 https://github.com/rafaelrinaldi/theme-pure.git; or begin;
    printf "Error: git clone of theme-pure repo failed\n"
    exit 1
end

Doc

See official doc begin - start a new block of code.