Re: запуск после логина
Roman Cheplyaka <roma@ro-che.info> wrote:
> [-- text/plain, кодировка quoted-printable, кодировка: utf-8, 39 строк --]
> * Andrey Melnikoff <temnota+news@kmv.ru> [2007-06-15 23:57:46+0400]
> > Roman Cheplyaka <roma@ro-che.info> wrote:
> > > [-- text/plain, кодировка quoted-printable, кодировка: utf-8, 19 строк --]
> >
> > > * Dmitry E. Oboukhov <dimka@avanto.org> [2007-06-15 16:37:23+0400]
> > > >
> > > > >> .bashrc/.zshrc
> > > >
> > > > > Для login shell это не сработает.
> > > > не понял, почему это?
> >
> > > When an interactive shell that is not a login shell is started, bash reads
> > > ~~~~~~~~~~~~~~~~~~~~
> > > and executes commands from /etc/bash.bashrc and ~/.bashrc, if these files
> > > exist.
> > А чтож тогда case $TERM в вышеописанном bash.bashrc хрен выполняется,
> > и приходиться в ~/.bashrc этот кусок тащить ?
> Понятия не имею.
> 23:09:~% sudo sh -c 'echo "echo hi" >> /etc/bash.bashrc'; bash
> hi
> feuerbach@crematorium:~$
Нее, не так - ты через ssh loclahost сходи.
Вот ~/.basrc (который individual per-interactive-shell) - выполняется, а
/etc/bash.bashrc (systemwide per-interactive-shell) нэт.
Reply to: