mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 21:29:43 +00:00
refactor installation doc
This commit is contained in:
@@ -24,7 +24,7 @@ and [link_on_import](https://dotdrop.readthedocs.io/en/latest/config-format/#con
|
||||
|
||||
Import the file:
|
||||
```bash
|
||||
$ ./dotdrop.sh import ~/.bashrc
|
||||
$ dotdrop import ~/.bashrc
|
||||
-> "/home/user/.bashrc" imported
|
||||
```
|
||||
|
||||
@@ -39,7 +39,7 @@ dotfiles:
|
||||
|
||||
Install the dotfile, which will remove your `~/.bashrc` and replace it with a link to the file stored in dotdrop:
|
||||
```bash
|
||||
$ ./dotdrop.sh install
|
||||
$ dotdrop install
|
||||
Remove "/home/user/.bashrc" for link creation? [y/N] ? y
|
||||
-> linked /home/user/.bashrc to /home/user/dotdrop/dotfiles/bashrc
|
||||
|
||||
|
||||
@@ -15,15 +15,15 @@ For example:
|
||||
`config-user.yaml` is used when managing the user's dotfiles:
|
||||
```bash
|
||||
## user config file is config-user.yaml
|
||||
$ ./dotdrop.sh import --cfg config-user.yaml <some-dotfile>
|
||||
$ ./dotdrop.sh install --cfg config-user.yaml
|
||||
$ dotdrop import --cfg config-user.yaml <some-dotfile>
|
||||
$ dotdrop install --cfg config-user.yaml
|
||||
...
|
||||
```
|
||||
|
||||
`config-root.yaml` is used when managing the system's dotfiles and is to be used with `sudo` or directly by the root user:
|
||||
```bash
|
||||
## root config file is config-root.yaml
|
||||
$ sudo ./dotdrop.sh import --cfg=config-root.yaml <some-dotfile>
|
||||
$ sudo ./dotdrop.sh install --cfg=config-root.yaml
|
||||
$ sudo dotdrop import --cfg=config-root.yaml <some-dotfile>
|
||||
$ sudo dotdrop install --cfg=config-root.yaml
|
||||
...
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user