You are not logged in.
Hi all,
How can I source my various dotfiles like .zshrc .vimrc and others from another directory than home? Lets say I want to organize everything and put them to .config
Offline
Offline
for zsh related files you can use:
/etc/zsh/zshenv
export ZDOTDIR=$HOME/.config/zsh
Offline
for zsh related files you can use:
/etc/zsh/zshenvexport ZDOTDIR=$HOME/.config/zsh
Okay I tried it on my VM and it works, but when I try it on my main machine it does not, it does not matter if I use rsync or cp even as a root user I get:
cannot stat 'zshenv' : Permission denied
why cannot I copy it to etc folder even though I am root or a user with sudo?
Offline
for zsh related files you can use:
/etc/zsh/zshenvexport ZDOTDIR=$HOME/.config/zsh
can I source vim bash and others in the same manner?
Offline
If by "same manner" you mean reading the link you were provided with so you can learn how, then yes.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
If by "same manner" you mean reading the link you were provided with so you can learn how, then yes.
No I meant zshenv file.
How for example I do it with vim? I have read it but could not understand exactly how I should do that.
Offline
any help on this matter?
Offline
any help on this matter?
Don't do that. https://wiki.archlinux.org/title/Genera … es#Bumping
What have you tried? Have you read the link you were given in post #2?
Offline