Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #276019

Re: bashrc question

From Chris Green <cl@isbd.net>
Newsgroups linux.debian.user
Subject Re: bashrc question
Date 2024-12-26 12:20 +0100
Message-ID <JXU4h-2OOS-1@gated-at.bofh.it> (permalink)
References <JXMT7-2HHN-5@gated-at.bofh.it> <JXNct-2HOe-1@gated-at.bofh.it> <JXRpM-2MuJ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


henrik@privatembox.com wrote:
> 
> So, since I am using a login shell, and I have .bashrc created. thus I 
> have to create a .profile to include .bashrc? Am I right?
> 
Yes, I think that's the right way round.

I use ssh a lot and have a 'standard' configuration for all the
systems I ssh into.

On all of them most of my basic environment settings are in .profile
and that calls .bashrc.

Make sure you **don't** have either ~/.bash_profile or ~/.bash_login
as these will be used instead of ~/.profile if they exist.

Note that (according to my understanding anyway) .bashrc should be
used for settings that are needed for interactive shells whereas
.profile is used for settings that are used by all programs not just
interactive ones.

-- 
Chris Green
ยท

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bashrc question henrik@privatembox.com - 2024-12-26 04:40 +0100
  Re: bashrc question George at Clug <Clug@goproject.info> - 2024-12-26 04:50 +0100
  Re: bashrc question Greg Wooledge <greg@wooledge.org> - 2024-12-26 05:00 +0100
    Re: bashrc question henrik@privatembox.com - 2024-12-26 09:30 +0100
      Re: bashrc question Chris Green <cl@isbd.net> - 2024-12-26 12:20 +0100
        Re: bashrc question pocket@homemail.com - 2024-12-26 14:00 +0100
        Re: bashrc question Greg Wooledge <greg@wooledge.org> - 2024-12-26 14:10 +0100
          Re: bashrc question henrik@privatembox.com - 2024-12-27 01:10 +0100
  Re: bashrc question Frank Jezzer <etphonehomefrance@gmail.com> - 2024-12-26 17:00 +0100

csiph-web