[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70164: [bug#70205] [PATCH] home: services: bash: Move default PS1 pr
From: |
Ludovic Courtès |
Subject: |
bug#70164: [bug#70205] [PATCH] home: services: bash: Move default PS1 prompt to bashrc |
Date: |
Mon, 29 Apr 2024 23:53:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Richard,
Richard Sent <richard@freakingpenguin.com> skribis:
> Reported in <https://issues.guix.gnu.org/70164>.
>
> * home/services/shells.scm (add-bash-configuration): Move default PS1 prompt
> from .bash_profile to .bashrc.
>
> Change-Id: Ic437458ee362cc4aa803a71c9962af866749f59a
Sounds reasonable to me; thanks for the clear explanation in
<https://issues.guix.gnu.org/70164>.
There was one missing newline before aliases so I made the following
change (adding two newlines, for good measure).
Applied, thanks!
Ludo’.
diff --git a/gnu/home/services/shells.scm b/gnu/home/services/shells.scm
index a5b2586dde..ee6b09f17c 100644
--- a/gnu/home/services/shells.scm
+++ b/gnu/home/services/shells.scm
@@ -421,11 +421,11 @@ (define (add-bash-configuration config)
,@(list (file-if-not-empty
'bashrc
(if (home-bash-configuration-guix-defaults? config)
- (list (plain-file-content %default-bashrc)
+ (list (plain-file-content %default-bashrc) "\n"
;; The host distro might provide a bad 'PS1'
;; default--e.g., not taking $GUIX_ENVIRONMENT into
;; account. Provide a good default here when asked.
- "PS1='\\u@\\h \\w${GUIX_ENVIRONMENT:+ [env]}\\$ '"
+ "PS1='\\u@\\h \\w${GUIX_ENVIRONMENT:+ [env]}\\$ '\n"
(serialize-field 'aliases))
(list (serialize-field 'aliases))))
(file-if-not-empty 'bash-logout)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#70164: [bug#70205] [PATCH] home: services: bash: Move default PS1 prompt to bashrc,
Ludovic Courtès <=