Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #234114
| From | Lee <ler762@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: .profile not being src'd at login on uptodate buster |
| Date | 2021-04-11 19:10 +0200 |
| Message-ID | <C2LKW-3ZY-3@gated-at.bofh.it> (permalink) |
| References | <C2qZP-7RB-1@gated-at.bofh.it> <C2qwN-7HS-5@gated-at.bofh.it> <C2rsS-8g4-5@gated-at.bofh.it> <C2J6q-2mz-7@gated-at.bofh.it> <C2Jzr-2vU-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 4/11/21, Greg Wooledge <greg@wooledge.org> wrote: > On Sun, Apr 11, 2021 at 09:11:47AM -0500, David Wright wrote: >> On Sat 10 Apr 2021 at 15:21:57 (-0400), Greg Wooledge wrote: >> > I'm not a fan of it, because I actually like to export PS1, rather >> > than setting it in .bashrc every time. I may be in the minority there. >> >> Exported from .[bash_]profile? I don't do that because the terminal >> type might be different (login on VC, but prompt in an xterm). > > >From .profile, typically. Although I'm actually not doing it right now. > > The terminal type is irrelevant. I don't put terminal escape sequences > in my PS1. <aside> really?!! What do you have in PS1? </aside> > I thought we were talking about "protecting" a section of a dot file so > that the noisy commands (fortune, cal, date, etc.) would only execute > when you're actually logging in, or actually launching a terminal, > and not when you're running scp, or other scripted stuff. That was probably me, forgetting how to redirect to stderr (fd 2?) and sidetracking the conversation into "echo foo" is a Really Bad Thing in a dot file and How To Do It Right. What I'm more interested in is how to prevent this kind of exchange: > > # set PATH so it includes user's private AppImages if it exists > > if [ -d "$HOME/AppImages" ] ; then > > PATH="$HOME/AppImages:$PATH" > > fi > > ===== > > Both directories do exist. > > Prove it, by running ls -ld $HOME/AppImages in a terminal, and then > pasting the shell prompt, the command, and its output from the terminal > session into the body of the email. IMO, the if test needs an else and the directory name shouldn't be typed out multiple times -- it belongs in an e-var: dir="$HOME/AppImages" if [ -d "$dir" ] ; then PATH="$dir:$PATH" else echo "OnNoes!! The directory \"$dir\" does not exist!" >&2 fi Regards, Lee
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
.profile not being src'd at login on uptodate buster Gene Heskett <gheskett@shentel.net> - 2021-04-07 14:20 +0200
Re: .profile not being src'd at login on uptodate buster IL Ka <kazakevichilya@gmail.com> - 2021-04-07 14:30 +0200
Re: .profile not being src'd at login on uptodate buster Gene Heskett <gheskett@shentel.net> - 2021-04-07 17:30 +0200
Re: .profile not being src'd at login on uptodate buster Gene Heskett <gheskett@shentel.net> - 2021-04-07 17:40 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-07 14:40 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-07 17:10 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-07 17:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-07 17:40 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-07 18:40 +0200
Re: .profile not being src'd at login on uptodate buster Marco Ippolito <maroloccio@gmail.com> - 2021-04-07 23:20 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-07 23:50 +0200
Re: .profile not being src'd at login on uptodate buster Marco Ippolito <maroloccio@gmail.com> - 2021-04-08 14:30 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-10 20:30 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-10 21:00 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-10 21:30 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-11 16:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-11 16:50 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-11 19:10 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-11 20:00 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-12 17:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-12 17:30 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-12 18:10 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-11 16:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-11 16:50 +0200
Re: .profile not being src'd at login on uptodate buster David Wright <deblis@lionunicorn.co.uk> - 2021-04-12 17:20 +0200
Re: .profile not being src'd at login on uptodate buster Lee <ler762@gmail.com> - 2021-04-07 23:50 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-08 00:10 +0200
Re: .profile not being src'd at login on uptodate buster Curt <curty@free.fr> - 2021-04-08 10:20 +0200
Re: .profile not being src'd at login on uptodate buster Tixy <tixy@yxit.co.uk> - 2021-04-08 12:20 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-08 13:30 +0200
Re: .profile not being src'd at login on uptodate buster Greg Wooledge <greg@wooledge.org> - 2021-04-08 13:40 +0200
csiph-web