[x] I have read and understood the [contributing guide][CONTRIBUTING.md].
[x] The commit message follows the [conventional commits][cc] guidelines.
[x] Tests for the changes have been added (for bug fixes / features).
[x] Docs have been added/updated (for bug fixes / features).
This PR allows for environment variables to be exported as an Array. A common use case in zsh (and I'm sure other shells) is to have an array set up for exclusions or inclusions. Specifically for things like the zsh plugin YouShouldUse. These require an array ENV=("content") and this was incompatible with the current formatString.
I am marking this as a Draft since only zsh and bash have been implemented directly. I have almost zero knowledge of the other shells Aliae supports and figured if they have functional arrays adding them wouldn't be too difficult for someone who does use them. If not I can go digging around in their docs to get them added.
I am also unsure if Type should be a string that would allow future expansion of other types, or if the option should just be Array and be a boolean.
Prerequisites
This PR allows for environment variables to be exported as an Array. A common use case in
zsh
(and I'm sure other shells) is to have an array set up for exclusions or inclusions. Specifically for things like the zsh plugin YouShouldUse. These require an arrayENV=("content")
and this was incompatible with the currentformatString
.I am marking this as a Draft since only
zsh
andbash
have been implemented directly. I have almost zero knowledge of the other shells Aliae supports and figured if they have functional arrays adding them wouldn't be too difficult for someone who does use them. If not I can go digging around in their docs to get them added. I am also unsure ifType
should be a string that would allow future expansion of other types, or if the option should just beArray
and be a boolean.(all vars are arrays)
(arrays exist but not for setenv)