-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
536 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[v2] stop # FIXME | ||
|
||
exists $HOME${/}.bashrc | ||
exists $HOME${/}.inputrc | ||
chezmoi apply --remove | ||
! exists $HOME${/}.bashrc | ||
exists $HOME${/}.inputrc | ||
|
||
-- home/user/.bashrc -- | ||
# contents of .bashrc | ||
-- home/user/.inputrc -- | ||
# contents of .inputrc | ||
-- home/user/.local/share/chezmoi/.chezmoiremove -- | ||
.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[v2] stop # FIXME | ||
|
||
chezmoi chattr +empty $HOME${/}.bashrc | ||
exists ${CHEZMOISOURCEDIR}/empty_dot_bashrc | ||
|
||
chezmoi chattr +template $HOME${/}.bashrc | ||
exists ${CHEZMOISOURCEDIR}/empty_dot_bashrc.tmpl | ||
|
||
chezmoi chattr +private $HOME${/}.bashrc | ||
exists ${CHEZMOISOURCEDIR}/private_empty_dot_bashrc.tmpl | ||
|
||
chezmoi chattr noempty $HOME${/}.bashrc | ||
exists ${CHEZMOISOURCEDIR}/private_dot_bashrc.tmpl | ||
|
||
chezmoi chattr -- -template $HOME${/}.bashrc | ||
exists ${CHEZMOISOURCEDIR}/private_dot_bashrc | ||
|
||
chezmoi chattr nop $HOME${/}.bashrc | ||
exists ${CHEZMOISOURCEDIR}/dot_bashrc | ||
|
||
-- home/user/.local/share/chezmoi/dot_bashrc -- | ||
# contents of .bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
[v2] stop 'dump format changed' | ||
|
||
chezmoi --format=json dump | ||
cmpenv stdout golden/dump.json | ||
|
||
chezmoi --format=json dump $HOME${/}.bashrc | ||
cmpenv stdout golden/dump-bashrc.json | ||
|
||
chezmoi --format=json dump $HOME${/}.ssh | ||
cmpenv stdout golden/dump-ssh.json | ||
|
||
chezmoi --format=json --recursive=false dump $HOME${/}.ssh | ||
cmpenv stdout golden/dump-ssh-non-recursive.json | ||
|
||
chezmoi --format=yaml dump | ||
cmpenv stdout golden/dump.yaml | ||
|
||
! chezmoi dump $HOME${/}.inputrc | ||
stdout 'file does not exist' | ||
|
||
-- golden/dump.json -- | ||
[ | ||
{ | ||
"type": "file", | ||
"sourcePath": "$WORK/home/user/.local/share/chezmoi/dot_bashrc", | ||
"targetPath": ".bashrc", | ||
"empty": false, | ||
"encrypted": false, | ||
"perm": 420, | ||
"template": false, | ||
"contents": "# contents of .bashrc\n" | ||
}, | ||
{ | ||
"type": "dir", | ||
"sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh", | ||
"targetPath": ".ssh", | ||
"exact": false, | ||
"perm": 448, | ||
"entries": [ | ||
{ | ||
"type": "file", | ||
"sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh/config", | ||
"targetPath": ".ssh/config", | ||
"empty": false, | ||
"encrypted": false, | ||
"perm": 420, | ||
"template": false, | ||
"contents": "# contents of .ssh/config\n" | ||
} | ||
] | ||
} | ||
] | ||
-- golden/dump-bashrc.json -- | ||
[ | ||
{ | ||
"type": "file", | ||
"sourcePath": "$WORK/home/user/.local/share/chezmoi/dot_bashrc", | ||
"targetPath": ".bashrc", | ||
"empty": false, | ||
"encrypted": false, | ||
"perm": 420, | ||
"template": false, | ||
"contents": "# contents of .bashrc\n" | ||
} | ||
] | ||
-- golden/dump-ssh.json -- | ||
[ | ||
{ | ||
"type": "dir", | ||
"sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh", | ||
"targetPath": ".ssh", | ||
"exact": false, | ||
"perm": 448, | ||
"entries": [ | ||
{ | ||
"type": "file", | ||
"sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh/config", | ||
"targetPath": ".ssh/config", | ||
"empty": false, | ||
"encrypted": false, | ||
"perm": 420, | ||
"template": false, | ||
"contents": "# contents of .ssh/config\n" | ||
} | ||
] | ||
} | ||
] | ||
-- golden/dump-ssh-non-recursive.json -- | ||
[ | ||
{ | ||
"type": "dir", | ||
"sourcePath": "$WORK/home/user/.local/share/chezmoi/private_dot_ssh", | ||
"targetPath": ".ssh", | ||
"exact": false, | ||
"perm": 448, | ||
"entries": null | ||
} | ||
] | ||
-- golden/dump.yaml -- | ||
- type: file | ||
sourcePath: $WORK/home/user/.local/share/chezmoi/dot_bashrc | ||
targetPath: .bashrc | ||
empty: false | ||
encrypted: false | ||
perm: 420 | ||
template: false | ||
contents: | | ||
# contents of .bashrc | ||
- type: dir | ||
sourcePath: $WORK/home/user/.local/share/chezmoi/private_dot_ssh | ||
targetPath: .ssh | ||
exact: false | ||
perm: 448 | ||
entries: | ||
- type: file | ||
sourcePath: $WORK/home/user/.local/share/chezmoi/private_dot_ssh/config | ||
targetPath: .ssh/config | ||
empty: false | ||
encrypted: false | ||
perm: 420 | ||
template: false | ||
contents: | | ||
# contents of .ssh/config | ||
-- home/user/.local/share/chezmoi/dot_bashrc -- | ||
# contents of .bashrc | ||
-- home/user/.local/share/chezmoi/private_dot_ssh/config -- | ||
# contents of .ssh/config |
Oops, something went wrong.