项目作者: chocobn69

项目描述 :
choco dotfiles
高级语言: Python
项目地址: git://github.com/chocobn69/dotfiles.git
创建时间: 2017-02-10T10:00:58Z
项目社区:https://github.com/chocobn69/dotfiles

开源协议:Apache License 2.0

下载


dotfiles

How to restore

  • Add this alias in your shell
    alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'

  • Ignore .cfg directory
    echo ".cfg" >> .gitignore

  • Clone github repository
    git clone --bare https://github.com/chocobn69/dotfiles.git $HOME/.cfg

  • Backup previously added config files

    1. mkdir -p .config-backup && \
    2. config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
    3. xargs -I{} mv {} .config-backup/{}
  • Get remote files
    config checkout

  • Ignore untracked files
    config config --local status.showUntrackedFiles no