Skip to content
/ dotfiles Public

Some of my dotfiles.

Notifications You must be signed in to change notification settings

szkrd/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

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 scripts

  • npm run lint - standard linter
  • npm run help - prints diff section below (on linux/macos)
  • npm run diff - interactive differ, see below

Diffing

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)

Platform specific notes

MacOS

Install git, nano, node, meld:

  1. update bash
  2. brew install git nano node
  3. brew cask install meld

Windows

  1. symlinking is not supported for now
  2. windows prefers its own folder (instead of common), see prefersPlatformSpecific in diff.js
  3. 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
  4. TODO: add support for partial roaming configartion merging (?)