longkt90 / private-dotfiles

Backup your dotfiles to a private repo to save times when switching to new machine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install dotfiles

To install, edit/add/remove the files as necessary and run sh install.sh After verify everything is working fine, we can do an additional step to clean up the old file: sh cleanup.sh

Back up

  • sh backup.sh
  • sh git-push.sh "Optional commit message"

Backup automatically

Add backup-and-push.sh to crontab

My practice

Backup both .ssh and .zsh_history files to a private git (free by Keybase), make sure all the SSH keys have a strong pass-phrase just in case.

Note

I am very lazy to type so almost all command is loaded from history, thanks to peco, more information please search for peco-zsh-history

It looks like this: (from http://interprism.hatenablog.com/entry/peco-zsh-history) hatenablog

About

Backup your dotfiles to a private repo to save times when switching to new machine.


Languages

Language:Shell 89.8%Language:Ruby 10.2%