Profile-based, os-aware dotfiles which allows to mix private and public dotfiles repositories.
Warning: If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don’t want or need. Don’t blindly use my settings unless you know what that entails. Use at your own risk!
Linux/macOS (optional):
export http_proxy=http://proxy:port
export http_proxy=http://proxy:port
export http_proxy=localhostWindows (optional)
[Environment]::SetEnvironmentVariable("http_proxy", "http://proxy:port", "User")
[Environment]::SetEnvironmentVariable("https_proxy", "http://proxy:port", "User")
[Environment]::SetEnvironmentVariable("no_proxy", "localhost", "User")
[Environment]::SetEnvironmentVariable("ChocolateyInstall", "c:\\path\\to\\chocolatey", "User")
[Environment]::SetEnvironmentVariable("ChocolateyToolsLocation", "c:\\path\\to\\tools", "User")If you do not have a git installation, please install brew, linuxbrew, Chocolatey and install git.
Checkout your/my public dotfiles repository.
git clone git://github.com/marsom/dotfiles ~/.dotfiles
Checkout your second dotfiles repository, i.e. your private repository.
git clone git://github.com/marsom/dotfiles ~/.dotfiles.0
Install the required binaries, i.e. golang, homebrew.
Linux/macOS
~/.dotfiles/bin/dofiles installWindwos
Import-Module .\.dotfiles\bin\dotfiles.psm1
Install-DotfilesModulesConfigure the files, i.e. create links.
Linux/macOS
~/.dotfiles/bin/dofiles update-profileWindwos
Import-Module .\.dotfiles\bin\dotfiles.psm1
Update-DotfilesProfileNever tested :-)