Closed dottagoa closed 4 years ago
I am trying to make chezmoi's modifications apply over a restart of the terminal, but I have to run
chezmoi apply
every time I want to see my changes.
This is very strange indeed. chezmoi updates the files in your home directory and you only need to run chezmoi apply
when your dotfiles change. If you're not seeing the changes that chezmoi made after you restart your terminal then it sounds like either something else is also modifying your home directory or the terminal is opening on to a different computer.
Can you provide more details about your configuration and exact steps to reproduce the problem?
Can you provide more details about your configuration and exact steps to reproduce the problem?
I use zsh as my shell with kitty as my terminal.
To reproduce, I open the terminal, and after the shell dotfiles load, I immediately run chezmoi apply
. I then close the terminal and start it back up, only to see nothing change.
I’ll update this post with the contents of my zshrc file and my chezmoi directory contents when I get back to my machine.
Please also post the output of chezmoi apply --verbose
.
Keep in mind that I used the raw Bash starting text to make reading easier. It would be too hard to have to take three separate screenshots of my oh-my-zsh output.
Here is my current list of files in the chezmoi folder, located in $HOME/.local/share/chezmoi
. Listed files with a forward slash obviously mean that it's a subdirectory.
criti@chronos~$ cd .local/share/chezmoi;ls
daymode.sh dot_conkySanctuary dot_night.gif dot_sn_OS_icon.png
dot_config/ dot_conkyViewport dot_oh-my-zsh/ dot_zshrc
dot_conkyrc dot_day.png dot_p10k.zsh nightmode.sh
This clickable text contains a Pastebin link to view the output of cat ~/.zshrc
. If you don't trust text with hyperlinks, then use this: https://pastebin.com/PVxDznWv
And here is the output of chezmoi apply --verbose
. The snippet shows no output when using the --verbose
option.
criti@chronos~$ chezmoi apply --verbose
criti@chronos~$
I might as well mention that neofetch
starts when I start my terminal; it's been set to do that when viewing the zsh dotfile. When it launches for the first time, though, my ascii art of a trans flag doesn't appear, and instead uses the ascii of my distro, Gallium.
And here is the output of chezmoi apply --verbose. The snippet shows no output when using the --verbose option.
criti@chronos~$ chezmoi apply --verbose criti@chronos~$
This indicates that all your dotfiles are already up-to-date. chezmoi only makes the minimal changes needed to update your dotfiles to the state you want, so if they're already in the desired state, it does nothing.
Okay. Thanks for letting me know!
What exactly am I trying to do?
I am trying to make chezmoi's modifications apply over a restart of the terminal, but I have to run
chezmoi apply
every time I want to see my changes.What have I tried so far?
Tried placing
chezmoi apply
to the start of my zshrc file; did not work as far as I saw.Where else have I checked for solutions?
Output of any commands you've tried with
--verbose
Tried doing so, resulted in no additional output.
Output of
chezmoi doctor