I work with a lot of different Concourse servers that have a variety of versions. fly rejects working with servers that are off to much. Therefore I have fly-3.14.1, fly-4.2.3 etc. on my machine.
But many set-pipeline scripts assume that a single fly command exists and that it magically is of the right version. So I need to switch; preferably per directory or per shell.
- Shell aliases are never exported, so that a
set-pipelinescript does not know about the alias. - I use ZSH, where functions cannot be exported.