An open API service indexing awesome lists of open source software.

https://github.com/kelunik/dotfiles

My personal dotfiles.
https://github.com/kelunik/dotfiles

dotfiles

Last synced: 2 months ago
JSON representation

My personal dotfiles.

Awesome Lists containing this project

README

        

# dotfiles

See also https://www.atlassian.com/git/tutorials/dotfiles.

## Setup

### Initial Setup

```bash
# Initialize Git repository
git init --bare $HOME/.cfg.git

# Alias git, so --git-dir isn't required for every command
alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'

# We don't want to track most files in the home directory, so ignore untracked ones
config config --local status.showUntrackedFiles no

# Permanently enable the alias by loading it on startup
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'" >> $HOME/.zshrc
```

### New System

```bash
# Alias git, so --git-dir isn't required for every command
alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'

# Avoid weird recursion problems
echo ".cfg.git" >> .gitignore

# Clone the repository
git clone --bare $HOME/.cfg.git

# Permanently enable the alias by loading it on startup
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg.git/ --work-tree=$HOME'" >> $HOME/.zshrc

# Checkout the repository contents in the home directory
config checkout

# We don't want to track most files in the home directory, so ignore untracked ones
config config --local status.showUntrackedFiles no
```