Hozzászólások
Sziasztok!
Az a problemam, hogy bessh-zva gepre a ~/.bashrc nem fut le.
Tehat amit abba irtam nem vesz tudomast rola (export LANG=en_EN).
Ha utana utok egy 'bash' parancsot, akkor mar szepen mukodik.
Tehat ha shellbol ujra inditok meg egy shellt akkor mar jo.
Bash shellbe erkezek, es azt is inditok. Tehat nem kulonbozo shellekkel van a problema.
5let?
Udv,
Khiraly
- A hozzászóláshoz be kell jelentkezni
bash -lst próbáltad megadni shellként?
- A hozzászóláshoz be kell jelentkezni
A .bashrc-t csak akkor toltodik be, ha a .bash_profile-ben kiveszed a kommenteket a .bashrc-s resz elol.
S.
- A hozzászóláshoz be kell jelentkezni
ha nincs .bash_profile, akkor lefut a .bashrc is :wink:
- A hozzászóláshoz be kell jelentkezni
[quote:4a7e15e10c="Sallus"]A .bashrc-t csak akkor toltodik be, ha a .bash_profile-ben kiveszed a kommenteket a .bashrc-s resz elol.
S.
De akkor miert torlodik be, ha inditok a shellem fole meg egy bash-t?
Tehat belepes utan utok egy:
bash
parancsot. Akkot nem nezi a /etc/bash.bashrc fajlt?
Udv,
Khiraly
- A hozzászóláshoz be kell jelentkezni
[quote:7d3c8da97c="khiraly"][quote:7d3c8da97c="Sallus"]A .bashrc-t csak akkor toltodik be, ha a .bash_profile-ben kiveszed a kommenteket a .bashrc-s resz elol.
S.
De akkor miert torlodik be, ha inditok a shellem fole meg egy bash-t?
Tehat belepes utan utok egy:
bash
parancsot. Akkot nem nezi a /etc/bash.bashrc fajlt?
Udv,
Khiraly
Sziasztok!
Login shell esetében a bash_profile fut le, amúgy a bashrc. Tehát bejelentkezés után csak akkor fut le a bashrc, ha azt a bash_profile meghívja IIRC.
Üdv.: Tomyellow
- A hozzászóláshoz be kell jelentkezni
A man szerint:
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.
When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists.
Ezek szerint neked az elso bekezdesben emlitett file-ok egyikere van szukseged.
- A hozzászóláshoz be kell jelentkezni
mármint az egyikükre :wink:
- A hozzászóláshoz be kell jelentkezni