Dotfile
A dotfile, in the sense punktf uses it, can be of two different kinds:
- A normal file
- A directory containing files
The options for both are the same (look at [[Profiles|Profiles]] for more details), but they differ in some ways:
-
If a directory get's deployed all files contained within it will also get deployed.
-
The contents of a directory are put in the root of the deployment target directory
For example:
profile.target:/home/demodotfile.path:config_linux(is directory)
Then all children of
config_linuxwill be deployed under/home/demoe.g./home/demo/.bashrcThis behaviour can be influenced in two different ways:
-
Set
dotfile.overwrite_target: This will used instead ofprofile.target. All files will still land in the root. -
Set
dotfile.rename: With this option a name for the directory can be setFor example:
- profile.target: /home/demo
- dotfile.path: config_linux (is directory)
- dotfile.rename: .config
Then all children of
config_linuxwill be deployed under/home/demo/.confige.g./home/demo/.config/.bashrc