Daily Workflow
Integrating Punkt into your daily routine.
Managing Files and Directories
To bring your files and directories under Punkt's management, simply execute punkt sync followed by your desired paths as arguments.
punkt sync ~/.local/share/nvim ~/.audreyBy default, Punkt recurses into directories. To prevent this behaviour, use the --no-recurse flag.
Should you modify any dotfiles in the Active State, simply run punkt sync again to update the Local State.
Editing Your Dotfiles
Over time, you will inevitably wish to make changes to your dotfiles. You may do so in one of two ways:
This presents a dilemma:
Should I edit the dotfile in the Active State or the Local State?
Short answer: It does not matter.
Long answer: In the long run (and provided you remember), we advise editing dotfiles in the Local State. This offers several advantages:
- You may leave partially completed dotfiles in the Local State, and your applications will continue to use the unmodified versions in the Active State until you execute
punkt activatewhen you are ready. - Although less intuitive, there is a higher likelihood that you will remember to commit and push your changes to the remote repository.
- In the future, when scripts and templates are introduced, dotfiles may be generated from them; in such cases, only the Local State should be modified.
Tracking Changes With Git
To utilise version control, simply execute Git commands as you normally would. However, you may call punkt git from any location to apply Git commands specifically within the Local State repository.
punkt git add .
punkt git commit -m "Initial commit"
punkt git pushpunkt git only works if you have Git installed on your system.
Applying Changes to Your Dotfiles
After editing dotfiles in your Local State, it is crucial to execute punkt activate to ensure the Local State versions are applied to the Active State.
punkt activate ~/.local/share/nvim ~/.audreyIf you wish to apply all dotfiles managed by Punkt, simply execute:
punkt activate