mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 12:16:11 +00:00
refactoring and update readme
This commit is contained in:
27
README.md
27
README.md
@@ -139,15 +139,17 @@ For additional usage see the help:
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ ./dotdrop.sh --help
|
$ ./dotdrop.sh --help
|
||||||
|
_ _ _
|
||||||
__| | ___ | |_ __| |_ __ ___ _ __
|
__| | ___ | |_ __| |_ __ ___ _ __
|
||||||
/ _` |/ _ \| __/ _` | '__/ _ \| '_ |
|
/ _` |/ _ \| __/ _` | '__/ _ \| '_ |
|
||||||
\__,_|\___/ \__\__,_|_| \___/| .__/ v0.2
|
\__,_|\___/ \__\__,_|_| \___/| .__/ v0.4
|
||||||
|_|
|
|_|
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
dotdrop.py install [-fndc <path>] [--profile=<profile>]
|
dotdrop.py install [-fndvc <path>] [--profile=<profile>]
|
||||||
dotdrop.py compare [-c <path>] [--profile=<profile>] [--files=<files>]
|
dotdrop.py compare [-vc <path>] [--profile=<profile>] [--files=<files>]
|
||||||
dotdrop.py import [-ldc <path>] [--profile=<profile>] <paths>...
|
dotdrop.py import [-ldc <path>] [--profile=<profile>] <paths>...
|
||||||
|
dotdrop.py listfiles [-c <path>] [--profile=<profile>]
|
||||||
dotdrop.py list [-c <path>]
|
dotdrop.py list [-c <path>]
|
||||||
dotdrop.py --help
|
dotdrop.py --help
|
||||||
dotdrop.py --version
|
dotdrop.py --version
|
||||||
@@ -159,6 +161,7 @@ Options:
|
|||||||
-n --nodiff Do not diff when installing.
|
-n --nodiff Do not diff when installing.
|
||||||
-l --link Import and link.
|
-l --link Import and link.
|
||||||
-f --force Do not warn if exists.
|
-f --force Do not warn if exists.
|
||||||
|
-v --verbose Be verbose.
|
||||||
-d --dry Dry run.
|
-d --dry Dry run.
|
||||||
--version Show version.
|
--version Show version.
|
||||||
-h --help Show this screen.
|
-h --help Show this screen.
|
||||||
@@ -237,6 +240,24 @@ Dotdrop allows to choose which profile to use
|
|||||||
with the *--profile* switch if you used something
|
with the *--profile* switch if you used something
|
||||||
else than the default (the hostname).
|
else than the default (the hostname).
|
||||||
|
|
||||||
|
## List configured dotfiles
|
||||||
|
|
||||||
|
The following command lists the different dotfiles
|
||||||
|
configured for a specific profile:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./dotdrop.sh listfiles --profile=<some-profile>
|
||||||
|
```
|
||||||
|
|
||||||
|
For example:
|
||||||
|
```
|
||||||
|
Dotfile(s) for profile "some-profile":
|
||||||
|
|
||||||
|
f_vimrc (file: "vimrc", link: False)
|
||||||
|
-> ~/.vimrc
|
||||||
|
f_dunstrc (file: "config/dunst/dunstrc", link: False)
|
||||||
|
-> ~/.config/dunst/dunstrc
|
||||||
|
```
|
||||||
|
|
||||||
## Update dotbot
|
## Update dotbot
|
||||||
|
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ def list_files(opts, conf):
|
|||||||
if not opts['profile'] in conf.get_profiles():
|
if not opts['profile'] in conf.get_profiles():
|
||||||
LOG.warn('unknown profile \"%s\"' % (opts['profile']))
|
LOG.warn('unknown profile \"%s\"' % (opts['profile']))
|
||||||
return
|
return
|
||||||
LOG.log('Dotfile(s) for profile \"%s\":' % (opts['profile']))
|
LOG.log('Dotfile(s) for profile \"%s\":\n' % (opts['profile']))
|
||||||
for dotfile in conf.get_dotfiles(opts['profile']):
|
for dotfile in conf.get_dotfiles(opts['profile']):
|
||||||
LOG.log('%s (file: \"%s\", link: %s)' % (dotfile.key, dotfile.src,
|
LOG.log('%s (file: \"%s\", link: %s)' % (dotfile.key, dotfile.src,
|
||||||
str(dotfile.link)))
|
str(dotfile.link)))
|
||||||
|
|||||||
Reference in New Issue
Block a user