Richmond [12.01.2017 13:23]:
Carlos E. R. wrote:
On 2017-01-12 13:13, Richmond wrote:
Carlos E. R. wrote:
On 2017-01-12 00:18, Richmond wrote:
If I copy /etc/bash.bashrc to /etc/bash.bashrc.local I can no longer log into the system. Why is that? It says at the top of the file not to edit bashrc but to use bashrc.local instead.
But you are creating a kind of loop... create it empty, then add whatever you want to add. Not all.
The problem is I want to change what's there, I think. And it might get overwritten. I have to look at it in detail.
No, .local files are never overwritten.
You create that file, you control what is there.
No I mean bashrc will be overwritten if I change it. Adding a .local doesn't allow me to change bashrc, only to add to it. Unless I can add code which undoes what has already been done.
So you mean, bash.bashrc sets (for example) "FOO=bar", and you want "FOO=baz" instead? This should work with bash.bashrc.local. If you want an empty Variable FOO, you may either have a line "FOO=" or "unset FOO" in bash.bashrc.local. Since bash.bashrc.local is included quite at the end of bash.bashrc, all variables have already been set so that you can overwrite them. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org