Sudo helix / nvim

sudo doesnt conserve your environment so that’s expected. You can try with sudo -E but even better, to edit files use sudoedit

3 Likes