<div>I've met the problem with ~/profile.d patching and want to suggest a solution. There is a lot of scripts that requires manual patching of the profile file. Some of such tools like go requires manual patching to add GOPATH, others provide scripts for this (like nvm). This is dangerous and not controllable with user or package managers. There is /etc/profile.d/ directory for whole system. But there is no such directory for user itself. I suggest to add ~/.profile.d directory into ubuntu profile skeleton in the future version.</div>