Only add composer to path if it exists
To make the files simlinks use
stow <folder>
For example:
stow bash
To solve all conflicts: (this will backup all conflicted files to file.back, to delete instead of backup simply uncomment the rm line and comment the mv line)
./solve-stow.sh <folder>
Overview