support ash for colorized prompt

This commit is contained in:
Dustin Kirkland 2024-01-02 19:22:31 -06:00
parent 18467fff88
commit ad32052231
2 changed files with 5 additions and 3 deletions

4
debian/changelog vendored
View file

@ -4,8 +4,10 @@ byobu (6.3) jammy; urgency=medium
- within Wolfi, default to our 2nd status line
* usr/lib/byobu/updates_available:
- silence apk update
* usr/share/byobu/profiles/bashrc:
- support ash for colorized prompt
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 02 Jan 2024 19:09:57 -0600
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 02 Jan 2024 19:22:05 -0600
byobu (6.2) released; urgency=medium

View file

@ -24,8 +24,8 @@ case "$TERM" in
;;
esac
if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then
# Ensure that we're in bash, in a byobu environment
if [ -n "$BYOBU_BACKEND" ] && [ -n "$BASH" ]; then
# Ensure that we're in bash or ash, in a byobu environment
if [ -n "$BYOBU_BACKEND" ] && [ -n "$BASH" ] || [ "$SHELL" = "/bin/ash" ]; then
byobu_prompt_status() { local e=$?; [ $e != 0 ] && echo -e " $e "; }
[ -n "$BYOBU_CHARMAP" ] || BYOBU_CHARMAP=$(locale charmap 2>/dev/null || echo)
byobu_prompt_symbol() {