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
}
up vote 1 down vote accepted

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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.