diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-12-27 21:52:59 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-01-05 15:00:27 +0100 |
commit | 086df6ef213d44d4b75c263033552eef6b2bd868 (patch) | |
tree | e17a7ca433e668e207c4ae37aead48c17aa7aa10 /gnu/system | |
parent | 2127e56bd8b3ee8ae5b6cde1b7ed5bf50cf7127b (diff) | |
download | guix-086df6ef213d44d4b75c263033552eef6b2bd868.tar.gz |
system: Define default 'PS1' in /etc/bashrc rather than ~/.bashrc.
Users can override 'PS1' in ~/.bashrc if they wish. Previously, on Guix Home, the "default" 'PS1' would be set in ~/.bashrc when 'home-bash-configuration-guix-defaults?' is true, preventing users from overriding it via the 'environment-variables' field of 'home-bash-extension'. * gnu/system/shadow.scm (%default-bashrc): Remove 'PS1' setting. * gnu/system.scm (operating-system-etc-service): Define PS1 in /etc/bashrc. * gnu/home/services/shells.scm (add-bash-configuration): When 'home-bash-configuration-guix-defaults?' is true, add a default 'PS1' to ~/.bash_profile.
Diffstat (limited to 'gnu/system')
-rw-r--r-- | gnu/system/shadow.scm | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index 4360a5ebd1..2e87928368 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -142,13 +142,6 @@ fi # Source the system-wide file. [ -f /etc/bashrc ] && source /etc/bashrc -# Adjust the prompt depending on whether we're in 'guix environment'. -if [ -n \"$GUIX_ENVIRONMENT\" ] -then - PS1='\\u@\\h \\w [env]\\$ ' -else - PS1='\\u@\\h \\w\\$ ' -fi alias ls='ls -p --color=auto' alias ll='ls -l' alias grep='grep --color=auto'\n")) |