Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/memowe/dotfiles
https://github.com/memowe/dotfiles
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/memowe/dotfiles
- Owner: memowe
- Created: 2018-12-10T18:44:13.000Z (almost 6 years ago)
- Default Branch: home
- Last Pushed: 2024-06-25T08:12:35.000Z (5 months ago)
- Last Synced: 2024-06-25T09:44:22.530Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotfiles handling
Read the whole blog post: [Nicola Paolucci: The best way to store your dotfiles: A bare Git repository][blog]
```bash
$ git clone --recurse-submodules -j8 --bare https://github.com/memowe/dotfiles.git $HOME/.dotfiles.git
````.bashrc` file:
```bash
alias dotfiles='/usr/bin/env git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME'
```and
```bash
$ dotfiles submodule update --init --recursive
$ cd .vim && make && cd -
```Show added files only:
```bash
$ dotfiles config --local status.showUntrackedFiles no
```Sometimes, this needs to be done to make `dotfiles fetch --all` work as expected.
```bash
$ dotfiles config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
```The `dotfiles` command works now exactly like git does:
```bash
$ dotfiles status
$ dotfiles checkout work .tmux.conf
$ dotfiles add .config/redshift.conf
$ dotfiles commit -m 'Add redshift config'
$ dotfiles push origin work
```[blog]: https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/