I reinstalled Manjaro Cinnamon 21.2.2-220123-linux515 trying to get rid of this error with no luck. I’ve only copied my dotfiles from an external drive and run the installation script.

Whenever I try a git init in any empty repository I get /git: permission denied. Which doesn’t tell me anything.

I’ve found that the error is produced because of this lines in the installation of my dotfiles:

  sudo tee -a /etc/profile /etc/zshenv /etc/zsh/zshenv &>/dev/null <<EOF
export XDG_CONFIG_HOME=$XDG_CONFIG_HOME
export ZDOTDIR=$ZDOTDIR
EOF

If I change the lines appended to those files and restart the system it doesn’t give me an error, but then my configuration isn’t loaded. But that could mean the error happens anywhere in my configuration and I don’t know how to find it.

@Better_Rough_2554@lemmy.ml
creator
link
fedilink
2
edit-2
2M

deleted by creator

Linux Admin
!linux

    Ask specific questions about how to do something with linux

    General linux discussion on lemmy.ml

    Create Post From:
    lemmy.ml

    Community icon by Alpár-Etele Méder,
    licensed under CC BY 3.0

    • 0 users online
    • 1 user / day
    • 1 user / week
    • 1 user / month
    • 9 users / 6 months
    • 18 subscribers
    • 5 Posts
    • 13 Comments
    • Modlog