From: Alex Griffin <a@ajgrf.com>
To: guix-devel@gnu.org
Subject: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.
Date: Thu, 05 May 2016 10:07:22 -0500 [thread overview]
Message-ID: <1462460842.3188118.599119297.5D5C232E@webmail.messagingengine.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 159 bytes --]
There's really no reason for other programs to need to see your bash
prompt, so I removed a couple `export` keywords from the default bashrc.
--
Alex Griffin
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-system-Do-not-export-PS1-in-etc-skel-.bashrc.patch --]
[-- Type: text/x-patch; name="0001-system-Do-not-export-PS1-in-etc-skel-.bashrc.patch", Size: 775 bytes --]
From 597c788a6604bcd84a24a469d92c1fbd47f4bedb Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Thu, 5 May 2016 09:59:03 -0500
Subject: [PATCH] system: Do not export PS1 in /etc/skel/.bashrc.
---
gnu/system/shadow.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index a13ef11..1aa4422 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -166,9 +166,9 @@ fi
# Adjust the prompt depending on whether we're in 'guix environment'.
if [ -n \"$GUIX_ENVIRONMENT\" ]
then
- export PS1='\\u@\\h \\w [env]\\$ '
+ PS1='\\u@\\h \\w [env]\\$ '
else
- export PS1='\\u@\\h \\w\\$ '
+ PS1='\\u@\\h \\w\\$ '
fi
alias ls='ls -p --color'
alias ll='ls -l'\n"))
--
2.7.4
next reply other threads:[~2016-05-05 15:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 15:07 Alex Griffin [this message]
2016-05-05 15:17 ` [PATCH] system: Do not export PS1 in /etc/skel/.bashrc Alex Griffin
2016-05-05 22:34 ` Efraim Flashner
2016-05-05 23:18 ` Alex Griffin
2016-05-06 10:18 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462460842.3188118.599119297.5D5C232E@webmail.messagingengine.com \
--to=a@ajgrf.com \
--cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).