Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snototter/dotfiles
https://github.com/snototter/dotfiles
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/snototter/dotfiles
- Owner: snototter
- Created: 2023-06-01T10:48:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-08T19:42:43.000Z (8 months ago)
- Last Synced: 2024-11-05T22:32:24.685Z (2 months ago)
- Language: Shell
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
My personal dotfiles following the [Atlassian bare repo tutorial](https://www.atlassian.com/git/tutorials/dotfiles)# Setup
1. Prevent weird recursion problems:
```zsh
echo ".dotcfg" >> $HOME/.gitignore
```
2. Clone this dotfile repository into the `.dotcfg` folder of your `$HOME`:
```zsh
git clone --bare [email protected]:snototter/dotfiles.git $HOME/.dotcfg
```
3. Define the following alias:
```zsh
alias dotconfig='/usr/bin/git --git-dir=$HOME/.dotcfg/ --work-tree=$HOME'
```
4. TODO `dotconfig checkout` - might fail (need to automate user query + backup)
5. Set repository properties:
```zsh
# Hide untracked files
dotconfig config --local status.showUntrackedFiles no
# User details
dotconfig config --local user.name "snototter"
dotconfig config --local user.email "[email protected]"
# Set upstream branch
dotconfig push --set-upstream origin main
```
6. Done, now dotfile changes can be simply tracked:
```zsh
dotconfig status
dotconfig add .bashrc
dotconfig commit -m "Add bashrc"
dotconfig push
```