add byobu prompt to .bashrc in Wolfi

This commit is contained in:
Dustin Kirkland 2024-01-16 19:14:44 -06:00
parent d670c33554
commit e9c1ff5c37
2 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View file

@ -1,9 +1,11 @@
byobu (6.6) jammy; urgency=medium
byobu (6.6) unreleased; urgency=medium
* usr/share/byobu/profiles/bashrc:
- export PS1
* usr/bin/byobu-janitor.in:
- add byobu prompt to .bashrc in Wolfi
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Jan 2024 13:04:22 -0600
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 16 Jan 2024 19:14:10 -0600
byobu (6.5) released; urgency=medium

View file

@ -142,6 +142,10 @@ if [ "$BYOBU_DISTRO" = "Wolfi" ]; then
if ! (grep -qs "#byobu-prompt#$" "$HOME/.profile"); then
printf "[ -r $BYOBU_CONFIG_DIR/prompt ] && . $BYOBU_CONFIG_DIR/prompt #byobu-prompt#\n" >> "$HOME/.profile"
fi
# Wolfi also has bash, which uses .bashrc
if ! (grep -qs "#byobu-prompt#$" "$HOME/.bashrc"); then
printf "[ -r $BYOBU_CONFIG_DIR/prompt ] && . $BYOBU_CONFIG_DIR/prompt #byobu-prompt#\n" >> "$HOME/.bashrc"
fi
fi
# Affects: Upgrades from <= byobu 5.126, clear out ec2/rcs cost statuses