From: Peter Humphrey <peter@prh.myzen.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] bashrc and setting PS1 variable heads up.
Date: Fri, 28 Jun 2024 15:58:31 +0100 [thread overview]
Message-ID: <4933808.31r3eYUQgx@cube> (raw)
In-Reply-To: <a3c10d40-bcce-1a9b-0cfd-16364ba32b7a@gmail.com>
On Friday, 28 June 2024 08:32:44 BST Dale wrote:
> I did a major upgrade and found out I had a lot of config files to
> update. I performed those updates, while losing some of my settings.
> Anyway, I figured out how to set the alias variables. Simple enough.
> Create a file and list them in the file. The PS1 is different because
> it usually determines if a user is root or not and gives a different
> prompt. That requires a little bit of scripting, which most know is a
> huge weak point for me.
I thought the proper place to define aliases was in /etc/profile.d/
profile_aliases.sh. That's where I have mine, anyway.
PS1 is set in /etc/bash/bashrc.d/10-gentoo-color.bash, as you say. I change
the prompt colours in there, in the case of the little rescue system I have on
each machine. That's so that I can see which system I'm logged-on to (I
maintain the rescue system by chrooting into it from the main system, and it's
far too easy to make mistakes without that precaution).
--
Regards,
Peter.
next prev parent reply other threads:[~2024-06-28 14:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-28 7:32 [gentoo-user] bashrc and setting PS1 variable heads up Dale
2024-06-28 7:46 ` Wols Lists
2024-06-28 14:58 ` Peter Humphrey [this message]
2024-06-28 22:08 ` Dale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4933808.31r3eYUQgx@cube \
--to=peter@prh.myzen.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox