Groups | Search | Server Info | Login | Register


Groups > alt.comp.lang.shell.unix.bourne-bash > #260

Re: is there a startup script?

From "Michael F. Stemper" <mstemper@gmail.com>
Newsgroups alt.comp.lang.shell.unix.bourne-bash
Subject Re: is there a startup script?
Date 2021-03-26 12:30 -0500
Organization A noiseless patient Spider
Message-ID <s3l5na$98j$1@dont-email.me> (permalink)
References <09vp5gto0l8kiihh6umeabjp57lvt73krj@4ax.com>

Show all headers | View raw


On 25/03/2021 16.15, Daniel L Newhouse wrote:
> I'm looking through the OReilly book.  I'm used to the t-shell.  Does
> this shell have a startup script?

Well, there is ~/.profile, which I mostly use for setting environment
variables. It's only run (as I understand it) for login shells. However,
if you're running in a windowing environment, other windows appear to
inherit all of those variables.

Then, there is ~/.bashrc, which bash runs for non-login shells.

There is also ~/.bash_aliases, which is used to set command aliases in
interactive use. My ~/.bashrc conditionally executes it (the condition
being if ~/.bash_aliases exists). I don't think that this is really
a fundamental part of the bash ecosystem.

-- 
Michael F. Stemper
If you take cranberries and stew them like applesauce they taste much
more like prunes than rhubarb does.

Back to alt.comp.lang.shell.unix.bourne-bash | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

is there a startup script? Daniel L Newhouse <dlnewhouse@gmail.com> - 2021-03-25 16:15 -0500
  Re: is there a startup script? Grant Taylor <gtaylor@tnetconsulting.net> - 2021-03-25 15:48 -0600
  Re: is there a startup script? Lewis <g.kreme@kreme.dont-email.me> - 2021-03-25 21:50 +0000
  Re: is there a startup script? "Michael F. Stemper" <mstemper@gmail.com> - 2021-03-26 12:30 -0500
    Re: is there a startup script? Daniel L Newhouse <dlnewhouse@gmail.com> - 2021-03-28 15:09 -0500
    Re: is there a startup script? Daniel L Newhouse <dlnewhouse@gmail.com> - 2021-03-28 15:12 -0500
      Re: is there a startup script? Daniel L Newhouse <dlnewhouse@gmail.com> - 2021-03-28 15:16 -0500
        Re: is there a startup script? Daniel L Newhouse <dlnewhouse@gmail.com> - 2021-03-28 16:24 -0500
          Re: is there a startup script? Daniel L Newhouse <dlnewhouse@gmail.com> - 2021-03-28 19:00 -0500
          Re: is there a startup script? Lewis <g.kreme@kreme.dont-email.me> - 2021-03-29 03:09 +0000
          Re: is there a startup script? Daniel L Newhouse <dlnewhouse@gmail.com> - 2021-05-26 19:45 -0500

csiph-web