LucasLarson/dotfiles

add to arrays in a more portable way

LucasLarson opened this issue · 0 comments

Proposal

undo

cb371c4

dotfiles/.zshrc

Lines 93 to 96 in cb371c4

plugins+=(
git
gunstage
)

a8240df

dotfiles/.zshrc

Lines 95 to 97 in a8240df

plugins+=(
zsh-syntax-highlighting
)


rationale α.

both

path=(addition "${path[@]}")

and

path=("${path[@]}" addition)

become possible

rationale ⅰ.

moreover, “In POSIX sh, += is undefined” (SC3024)