From 7c0725c26f183238f10bc3aa8c2aeee175d5282b Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 27 Jan 2023 17:24:15 +0100 Subject: [PATCH] fix bash prompt for root # --- usr/lib/initcpio/install/archboot_base_common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/initcpio/install/archboot_base_common b/usr/lib/initcpio/install/archboot_base_common index 82a13f2bf..ed5585795 100644 --- a/usr/lib/initcpio/install/archboot_base_common +++ b/usr/lib/initcpio/install/archboot_base_common @@ -61,7 +61,7 @@ build () # shellcheck disable=SC2129 echo "passwd -S root | grep -q 'L' && passwd -d root >/dev/null" >> "$BUILDROOT/etc/bash.bashrc" # color output for bash prompt and ls - echo -e "PS1='[\e[1;31m\u\e[m@\e[1;32m\h\e[m \W]\$ '" >> "$BUILDROOT/etc/bash.bashrc" + echo -e "PS1='[\e[1;31m\u\e[m@\e[1;32m\h\e[m \W]\\$ '" >> "$BUILDROOT/etc/bash.bashrc" echo -e "alias ls='ls --color=auto'" >> "$BUILDROOT/etc/bash.bashrc" ### add kmod related config file(s) add_file "/usr/lib/depmod.d/search.conf"