go>> dots>> 返回
项目作者: atomgomba

项目描述 :
Creates a CLI environment for managing dotfiles using git on Linux
高级语言: Shell
项目地址: git://github.com/atomgomba/dots.git
创建时间: 2017-08-31T18:49:00Z
项目社区:https://github.com/atomgomba/dots

开源协议:

下载


·⦁•⚫● DOTS ●⚫•⦁·

Creates a CLI environment for managing dotfiles using git on Linux. It adds an alias called dots to the shell to interact with a git repository located at $HOME/.dotfiles.

Run the setup script using wget:

  1. wget -qO - https://raw.githubusercontent.com/atomgomba/dots/master/setup.sh | sh

Or curl:

  1. curl -s https://raw.githubusercontent.com/atomgomba/dots/master/setup.sh | sh

What the setup script does is basically the following:

  1. git init --bare ~/.dotfiles
  2. git --git-dir=~/.dotfiles config status.showUntrackedFiles no
  3. alias dots=git --git-dir=~/.dotfiles

Example usage

  1. # push a change in vim settings
  2. dots add ~/.vimrc
  3. dots commit -m "vimrc: show line numbers by default"
  4. dots push