[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting up aliases to work also in tty* consoles?



Greg Wooledge composed on 2017-06-20 11:14 (UTC-0400):

> When you login on a text console, you get a login shell, which reads
> ~/.bash_profile or ~/.bash_login or ~/.profile but not ~/.bashrc.
> (Which is why you need that extra source step.)

> When you run a terminal emulator within an X session, you *typically*
> get a non-login shell, which reads ~/.bashrc only.
.
Interesting. Which WM(s)/DE(s) do/does that apply to? 'alias | wc -l' produces
same result here whether in vtty or in Konsole, whether root (53) or ordinary
user (22), my self-created aliases are all in ~/.bashrc, and except for
(non-existent) /etc/bashrc I have no reference to any other startup or other
script in ~/.bashrc.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/


Reply to: