fix bash prompt for root #

This commit is contained in:
Tobias Powalowski 2023-01-27 17:24:15 +01:00
parent 0caf254473
commit 7c0725c26f

View file

@ -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"