fleek icon indicating copy to clipboard operation
fleek copied to clipboard

Prevent OSX updates to break fleek

Open e-minguez opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. When OSX is updated it restores back the /etc/zshrc file, making fleek not working.

Describe the solution you'd like The usual workaround is to restore back the following lines at the /etc/zshrc level:

# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix

Describe alternatives you've considered I guess the same can be done at ~/.zshrc level

Additional context https://github.com/NixOS/nix/issues/3616

Also https://github.com/NixOS/nix/issues/3616#issuecomment-1557404536

e-minguez avatar Jun 23 '23 05:06 e-minguez

Having fleek autodetect if the system is a darwin one, then adding a function like "fix_osx_update()" in ~/.zshrc that writes the nix-importing line on /etc/zshrc should fix this issue

tulilirockz avatar Jun 24 '23 07:06 tulilirockz

I think it might be better to use this fix: https://github.com/NixOS/nix/issues/3616#issuecomment-1557404536

I'll work on this soon, since the new update is rolling out.

bketelsen avatar Sep 26 '23 03:09 bketelsen