https://github.com/davidbarton/dotfiles
https://github.com/davidbarton/dotfiles
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidbarton/dotfiles
- Owner: davidbarton
- Created: 2023-08-06T11:08:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T10:08:47.000Z (almost 2 years ago)
- Last Synced: 2025-03-01T23:43:05.920Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 9.27 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
Awesome Lists containing this project
README
# Dotfiles
## How to use this repository?
1. Fork this repository
2. Clone your new fork
```bash
# First download clone script
curl -fsSLJO https://raw.githubusercontent.com/davidbarton/dotfiles-template/main/.dotfiles/scripts/clone.sh
# Make it executable
chmod +x clone.sh
# Execute clone script, do not forget to use path to your fork
./clone.sh
# You can delete clone script now
rm clone.sh
```
3. Add an alias to your .zshrc (or .bashrc)
```bash
alias dotfiles='git --git-dir=$HOME/.dotfiles/.git --work-tree=$HOME'
```
4. Source updated .zshrc
```bash
source .zhsrc
```
5. You are all setup and can start using it as any other git repo
```bash
dotfiles add .gitconfig
dotfiles commit -m "Add .gitconfig"
```