mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
Update README.md
This commit is contained in:
21
README.md
21
README.md
@@ -1,12 +1,15 @@
|
|||||||
# dotfiles
|
# config
|
||||||
|
|
||||||
## Setup a bare git repo
|
This repo stores nix, dotfiles, and other miscellaneous scripts.
|
||||||
|
|
||||||
```shell
|
## Setup
|
||||||
git clone --bare git@github.com:davegallant/dotfiles.git $HOME/.dotfiles
|
|
||||||
alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' # add alias to a .bashrc or .zshrc
|
Clone this as a bare repo to avoid the need for symlinking:
|
||||||
source ~/.zshrc || source ~/.bashrc
|
|
||||||
config config --local status.showUntrackedFiles no
|
```console
|
||||||
# override all config files
|
$ git clone --bare git@github.com:davegallant/config.git $HOME/.dotfiles
|
||||||
config checkout -f
|
$ alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' # add alias to a .bashrc or .zshrc
|
||||||
|
$ source ~/.zshrc
|
||||||
|
$ config config --local status.showUntrackedFiles no
|
||||||
|
$ config checkout -f # this will overwrite any existing configs in the home directory
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user