Hacker News new | ask | show | jobs
by gingerlime 3671 days ago
Thanks for the awesome tips and simple recipe to tie things together.

Had to tweak mine slightly though:

  ${HOSTNAME_SHORT} -> ${HOSTNAME}

  $HOME/Sync/Dotfiles/history -> $HOME/Sync/Dotfiles/history/*
(maybe the missing star was due to HN formatting?)
1 comments

Yes, the stars are missing, but not where you think. The --files option has a star on the inside of each quote. This makes the search only show history for the host you are on (I sync my Dotfiles between machines).

sift searches a path/folder so the star you have is not needed.

But yeah, HOSTNAME_SHORT is something I derive from HOSTNAME.

Thanks for clarifying! Now I'm curious to hear more about how you sync your dotfiles ;-)
I sync my "$HOME/Sync" folder to pretty much every device I have. Android phone/tablet, Windows Laptop, FreeBSD Desktop, Linux VPS....

syncthing[0]/SyncTrazor[1]

[0] https://syncthing.net/

[1] https://github.com/canton7/SyncTrayzor#installation

Dropbox with a symlink also works fine though I have had it generate conflicts within .ssh folder which I also sync.