https://github.com/stringparser/dotfiles
house a simple setup to get started anywhere
https://github.com/stringparser/dotfiles
Last synced: 5 months ago
JSON representation
house a simple setup to get started anywhere
- Host: GitHub
- URL: https://github.com/stringparser/dotfiles
- Owner: stringparser
- Created: 2015-08-01T10:47:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T15:43:49.000Z (over 7 years ago)
- Last Synced: 2025-07-15T07:40:31.080Z (6 months ago)
- Language: Emacs Lisp
- Size: 949 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
A simpler setup to work with dotfiles.
### setup
Create a bare repo to track dotfiles.
```sh
git clone --bare https://github.com/stringparser/dotfiles.git code/dotfiles
```
Setup an alias to use git from that repository.
```sh
echo 'alias dit="/usr/bin/git --git-dir=$HOME/code/dotfiles --work-tree=$HOME"' >> $HOME/.zshrc
```
Since we are tracking the whole `$HOME` folder, let's skip untracked files
```sh
dit config --local status.showUntrackedFiles no
```
That's it. You can use that repo to track files across your system.
```sh
config add .eslintrc
config add .zshrc
```
There are some usage caveats (like path completion) you might also want to disable showing untracked files.
### todo
- [X] Make completion work
### reference links
- [https://github.com/dvidelabs/config](https://github.com/dvidelabs/config)
- [https://news.ycombinator.com/item?id=11070797](https://news.ycombinator.com/item?id=11070797)
- [https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/](https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/)