Clone and npm i
as usual.
Has tools for either diff configs (npm run diff
)
or to deploy them with symlinking (npm run symlink
).
npm run lint
- standard linternpm run help
- prints diff section below (on linux/macos)npm run diff
- interactive differ, see below
Please set DIFF_TOOL
env param to your favorite diff tool.
By default the script uses meld
.
Filenames may be shortened so far (bash_profile
as ba
, gitignore
as gi
etc).
npm run diff
npm run diff -- bash_profile
npm run diff:bp
,npm run diff:ba
,npm run diff:gi
etc.- supported files and aliases:
ba
:.bash_aliases
bp
:.bash_profile
br
:.bashrc
(bash_profile in repo, bashrc locally)bs
:.bash_secret
gc
:.gitconfig
gi
:.gitignore
tmux
:.tmux.conf
screen
:.screenrc
mcmenu
:.config/mc/menu
(mc user menu)mcdirs
:.config/mc/hotlist
(mc hitlist)
Install git, nano, node, meld:
- update bash
brew install git nano node
brew cask install meld
- symlinking is not supported for now
- windows prefers its own folder (instead of common), see
prefersPlatformSpecific
in diff.js - don't forget to set the diff tool (or install meld and add it to your path), eg.:
DIFF_TOOL="/c/Program Files/WinMerge/WinMergeU.exe" npm run diff
DIFF_TOOL="/c/Program Files/Perforce/p4merge.exe" npm run diff
DIFF_TOOL="/c/Users/szabi/AppData/Local/Programs/Microsoft VS Code/Code.exe" npm run diff
- TODO: add support for partial roaming configartion merging (?)