3

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

1 Answer 1

3

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .