Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #174381
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Strange Problem with 'alias' |
| Date | 2016-11-08 21:20 +0100 |
| Message-ID | <sBl29-5Nj-13@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> |
| Organization | linux.* mail to news gateway |
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.
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