As far as I understand, the usual way to add a path to the
PATH environment variable is by concatenating paths separated by the
For example, if I want to add three paths to it
/my/path/3, I would have to do it as follows:
which is not easy to read.
Is there a way to define or add paths to the
PATH variable using a multi-line syntax? Perhaps using arrays? I am looking for something like this:
PATH = $PATH /my/path/1 /my/path/2 /my/path/3
In case there are interesting solutions that are shell specific, I am looking for a solution in zsh.