Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #174382
| From | Michael Milliman <michael.e.milliman@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Strange Problem with 'alias' |
| Date | 2016-11-08 21:40 +0100 |
| Message-ID | <sBllw-5TP-15@gated-at.bofh.it> (permalink) |
| References | <sBjWq-53v-49@gated-at.bofh.it> <sBkSt-5IO-5@gated-at.bofh.it> <sBkSt-5IO-3@gated-at.bofh.it> <sBkSt-5IO-15@gated-at.bofh.it> <sBl29-5Nj-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2016-11-08 at 15:10 -0500, Greg Wooledge wrote: > On Tue, Nov 08, 2016 at 02:08:02PM -0600, Michael Milliman wrote: > > On Tue, 2016-11-08 at 15:04 -0500, Greg Wooledge wrote: > > > On Tue, Nov 08, 2016 at 02:37:34PM -0500, Henning wrote: > > > > Put your aliases into .bash_ptofile > > > > > > No, don't do that. Make your login shell profile source or dot in > > > ~/.bashrc instead. > > > > > Ok, now I have to ask the queston, maybe a tangent and maybe not > > important to OP, but why is it better to source in .bashrc from .profile > > rather than putting the commands in .bash_profile?? > > When you run a non-login shell, it reads ~/.bashrc only. So the aliases > have to be there, or they won't be read at all. > > Putting a second copy of your aliases in ~/.bash_profile means you have > to keep both copies in sync. It's silly and error-prone and wasteful > of disk space. > Thanks, I see that now!! Incidentally, that is how I have my system set up sourcing ~/.bashrc. I just didn't immediately see the difference. You are right, putting anything in two places like that is just asking for trouble later on down the line. -- 73s de WB5VQX
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Strange Problem with 'alias' "S. P. Molnar" <s.molnar@sbcglobal.net> - 2016-11-08 20:10 +0100
Re: Strange Problem with 'alias' "S. P. Molnar" <s.molnar@sbcglobal.net> - 2016-11-08 20:20 +0100
Re: Strange Problem with 'alias' Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-08 20:50 +0100
Re: Strange Problem with 'alias' Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-08 21:10 +0100
Re: Strange Problem with 'alias' Michael Milliman <michael.e.milliman@gmail.com> - 2016-11-08 21:10 +0100
Re: Strange Problem with 'alias' Greg Wooledge <wooledg@eeg.ccf.org> - 2016-11-08 21:20 +0100
Re: Strange Problem with 'alias' Michael Milliman <michael.e.milliman@gmail.com> - 2016-11-08 21:40 +0100
Re: Strange Problem with 'alias' "S. P. Molnar" <s.molnar@sbcglobal.net> - 2016-11-08 22:00 +0100
Re: Strange Problem with 'alias' Henning <henning@itcfollmann.com> - 2016-11-08 21:10 +0100
csiph-web