GNU Stow does the symlinking for you.<p><a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;stow&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;stow&#x2F;</a><p>What I do with different machines, (just OSX &#x2F; Ubuntu atm) is a bash function to check which type of system I&#x27;m on and conditionally execute .profile &#x2F; .bashrc code on that basis. Also I look for a .bashrc-local file and source it if present. That lets me add truly machine-local code.