File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,17 @@ Simple dotfile management command line.
66
77- Only top level directories and files are dotted in target location (` DirDest ` )
88- Symlink directory is copied as normal directory
9+ - Files removed from source, will not be deleted from target location
10+ - Files that should keep out of go-dotfile management
11+ - ` ~/.ssh/known_hosts `
12+ - history files
13+ - cache files
914
1015### Minimum GO version
1116
1217go > 1.21
1318
14- ### Install
15-
16- ### Build
19+ ### Build and Install
1720
1821``` sh
1922git clone https://github.com/J-Siu/go-dotfile.git
@@ -36,7 +39,9 @@ go install
3639
3740### Configuration
3841
39- ` go-dotfile.sample.conf `
42+ Configuration must exist at ` $HOME/.config/go-dotfile.json ` , or supplied by the ` -c ` option.
43+
44+ Sample configuration:
4045
4146``` json
4247{
@@ -52,6 +57,12 @@ go install
5257}
5358```
5459
60+ Variable|Default|Usage
61+ --|--|--
62+ DirDest|$HOME|Target location of dotfiles and directories
63+ DirCP|n/a|Directories to be copied to target location
64+ DirAP|n/a|Files in these directories will be be copied to target location if not already exist, else appended
65+
5566### Testing
5667
5768``` sh
@@ -61,14 +72,6 @@ go-dotfile -c examples/go-dotfile.sample.json
6172ls -a $HOME /tmp
6273```
6374
64- ### Misc
65-
66- Files that should keep out of go-dotfile management
67-
68- - ` ~/.ssh/known_hosts `
69- - history files
70- - cache files
71-
7275### Change Log
7376
7477- v1.0.7
You can’t perform that action at this time.
0 commit comments