Skip to content

Commit

Permalink
Document install all and git cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ts committed Oct 17, 2024
1 parent f767e64 commit 5e947c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ When you are on a new system and you want to install the dotfiles you tracked, y
dotcmd install ~/.bashrc # Reference the path where the file should be installed
```

There is also an option to install all dotfiles (can be useful for a distro re-install).
```shell
dotcmd install all
```


## Contributing

Expand Down
7 changes: 4 additions & 3 deletions bin/dotcmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ log_ok() {
}

df_usage() {
echo "$0 [add FILE|restore FILE|install [FILE|all]]" >&2
echo "$0 [add FILE|restore FILE|install [FILE|all]|git CMD]" >&2
echo "" >&2
echo " add FILE Add a new dotfile" >&2
echo " restore FILE Restore the dotfile (untrack)" >&2
echo " add FILE Add a new dotfile" >&2
echo " restore FILE Restore the dotfile (untrack)" >&2
echo " install FILE|all Install the dotfile (overwrite existing file)" >&2
echo " git CMD Run a git command inside of the storage" >&2
echo "" >&2
echo "FILE is always the path to the normal file, not a path to the storage." >&2
echo "Any time a file is deleted/overwritten a backup is created right before (.bak)." >&2
Expand Down

0 comments on commit 5e947c5

Please sign in to comment.