You are not logged in.
Pages: 1
for some reason my system doesn't have anything set for $EDITOR. Obviously I could set it with
export EDITOR=nano
in my .bashrc file but that just feels sloppy. Is there a better way, a more recommended way that is, to set it? I feel like there must be a setting in some configuration file somewhere for it already.
Last edited by Zarcjap (2012-02-05 16:14:48)
Offline
My understanding is that you should put your environment variables in ~/.profile (or ~/.bash_profile if that is your shell, but you will need to source ~/.bashrc from there).
The Invocation section of the bash man page has more details...
Offline
You may also place the line in /etc/bash.bashrc to set the variable for all users. System-wide aliases can also go in that file.
Offline
That sounds more like what I was looking for, a system wide setting. Thanks.
Offline
'System-wide' does that include root as well? I've some problems with aliases for root.
Offline
'System-wide' does that include root as well? I've some problems with aliases for root.
Please open another thread, give us more info about your settings and post some examples - what works, what doesn't - for the regular users and for root.
Offline
Pages: 1