Configure a default shell for all commands


#1

It’d be nice to be able to set shell options for all commands in a given job/workflow/config file. This was asked already in Config for all shell commands (which is locked), but the answer there:

isn’t quite right: CircleCI added -eo pipefail to the default options, but the default options themselves are still not configurable. E.g., if I wanted to use the -x option, I would need to manually go through every one of the commands in my config file and add it as an option.


#2

You can define the shell at the job level instead of the run level:

https://circleci.com/docs/2.0/configuration-reference/#job_name


#3