configuration management for developers
-
Install nk
curl -fsSL https://raw.githubusercontent.com/ciiqr/nk/HEAD/install.sh | bash -
Add to path
append to your
~/.zprofileor~/.bash_profile/~/.bashrcto make this permanentexport PATH="${HOME}/.nk/bin:${PATH}"
-
Install nk (via powershell)
Set-ExecutionPolicy Bypass -Scope Process -Force Invoke-Expression ((New-Object System.Net.WebClient).DownloadString( 'https://raw.githubusercontent.com/ciiqr/nk/HEAD/install.ps1' ))
-
Add to path
for current session only, install script already updated user path which will be used for new sessions
$env:Path = "${HOME}/.nk/bin" + [IO.Path]::PathSeparator + $env:Path
-
Create nk config
./.nk.ymlsources: - . plugins: - ciiqr/nk-plugins
-
Create state config ie.
config.yml(any*.ymlexcept dotfiles.*.yml)when: os == "macos" packages: - homebrew/cask/google-chrome
-
Provision state
nk provision
- install dependencies and configure hooks (macos only atm, read script to figure out commands for other platforms)
./bin/dev setup- plugins: ciiqr/nk-plugins
- example config: ciiqr/dotfiles