Portál AbcLinuxu, 10. května 2025 08:44
Řešení dotazu:
. ~/.bashrc
) alebo iba jeho spustenie (t.j.: ~/.bashrc
). V tom druhom pripade sa totiz aliasy nastavia iba v podprocese, ktory ale okamzite skonci.
When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of ~/.bashrc.Tak asi mc vnucuje --norc a riesi to nasilu po svojom. Ja v /etc/mc nic ku bashu nemam a funguju mi aliasy z ~/.bashrc
If you are using bash you can specify startup commands for the subshell in your ~/.local/share/mc/bashrctakze asi sa to vyhodnocuje tak, ze ak existuju subory v ~/.local/share/mc/, tak sa pri starte subshellu vykonaju, ak nie, tak sa hladaju v /etc/mc a ak nie su ani tam, tak sa pouzije bezne .bashrc.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.