I'm am running macOS Sierra, and am in the process of moving all dotfiles into one directory. I have successfully exported many environment variables for various installations (vagrant
, composer
, oh-my-zsh
etc) that allow me to install to a sub-directory of my choice.
Unfortunately, programs like npm
, subversion
, homestead
, git
, and others do not offer such configurations.
$HOME/.<program>
. Trying to subvert this is pushing a big stone uphill for no immediately obvious benefit. – Mirza$HOME
directory. I want to keep all my settings and configurations in source control. – Squalorrcs
might be the right tool for that, since it stores revisions 'in place'. Myself, I keep a few key dotfiles in a separate repository and link to them one by one from$HOME
. I think there's no general solution. One possibility would be to redefine$HOME
in a shell startup script, but that won't be bulletproof and will have other consequences! – Mirza