Click to See Complete Forum and Search --> : Where define aliases in MC ?


x
09-10-2001, 05:15 AM
Aliases are not exported, so you put them in /etc/profile or similar.
This works fine with mot shells but what about Midnight Commander?
I guess this is a shell of its own, but I can't find any "profile"-file anywhere?
There are .ini-files, but putting aliases there doesnt' do anything.
So my question is: how do I keep my defined aliases when I run mc?

Taizong
09-10-2001, 03:44 PM
You mean adding aliases to the .bashrc file in your home directory?

x
09-12-2001, 05:11 AM
No, that's not it.
Putting aliases in .bashrc or /etc/profile or similar doesn't work when running MC.
I believe MC is a shell of it's own, so .bashrc is not read when MC is started. (As if I start eg a C-shell.)
MC should have something similar, but it doesn't seem to exist?
Each time I run MC I lose all aliases, no matter where they are specified, very annoying!