mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
964 stars 73 forks source link

[BUG] bash and zsh customisation is not protected with update #180

Closed eljejer closed 2 months ago

eljejer commented 2 months ago

Describe the bug I am using Dotfiles 2.9.6 and had some customization in bash and zsh in the directories

~/dotfiles/.config/bashrc/custom I updated Dotfiles with the bash command in tty

cd ~/downloads && rm -rf dotfiles && git clone --depth=1 https://github.com/mylinuxforwork/dotfiles.git && cd dotfiles && ./install.sh I use this way of updating my Dotfiles according to this.

To Reproduce Steps to reproduce the behavior: See description PLUS I removed the ~/dotfiles directory prior to the restore

Expected behavior I expected the files in the customization directory to be restored during update

Screenshots n/a

Distribution (please complete the following information):

Additional context Add any other context about the problem here.

eljejer commented 2 months ago

I see the problem now: I remove ~/dotfiles/ prior to the install. So the bash and zsh customization can never be preserved and therefor neither be restored. However, my customizations in ~/dotfiles/.config/hypr/conf/custom.conf ARE preserved. How can this be?

mylinuxforwork commented 2 months ago

Please follow this guide. https://github.com/mylinuxforwork/dotfiles/wiki/Switch-between-bash-and-zsh

If you delete the target folder for the dotfiles nothing can be restored.The installer will list all possible files and folders to restore if exists.

eljejer commented 2 months ago

Please follow this guide. https://github.com/mylinuxforwork/dotfiles/wiki/Switch-between-bash-and-zsh

If you delete the target folder for the dotfiles nothing can be restored.The installer will list all possible files and folders to restore if exists.

@mylinuxforwork Yes, if I delete I cannot restore. I understand that. But I still don't understand how the ~/dotfiles/.config/hypr/conf/custom.conf could be restored... Also, I understand that you went away from ~/dotfiles/.config/zshrc/custom/ subdirectroy and in stead introduced the inject file principle. Correct?