https://github.com/kelunik/dotfiles
My personal dotfiles.
https://github.com/kelunik/dotfiles
dotfiles
Last synced: 2 months ago
JSON representation
My personal dotfiles.
- Host: GitHub
- URL: https://github.com/kelunik/dotfiles
- Owner: kelunik
- Created: 2019-05-05T17:26:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T05:05:22.000Z (about 6 years ago)
- Last Synced: 2025-02-12T06:54:29.906Z (4 months ago)
- Topics: dotfiles
- Language: Vim script
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```