Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #276020
| From | pocket@homemail.com |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: bashrc question |
| Date | 2024-12-26 14:00 +0100 |
| Message-ID | <JXVD3-2QtW-5@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> <JXU4h-2OOS-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> Sent: Thursday, December 26, 2024 at 5:56 AM > From: "Chris Green" <cl@isbd.net> > To: debian-user@lists.debian.org > Subject: Re: bashrc question > > 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 > ยท > > [alarm@alarm ~]$ cat .bashrc # # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return alias ls='ls --color=auto' alias grep='grep --color=auto' PS1='[\u@\h \W]\$ ' [alarm@alarm ~]$ cat .bash_profile # # ~/.bash_profile # [[ -f ~/.bashrc ]] && . ~/.bashrc
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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