* usr/bin/byobu-janitor:

- ensure byobu can be purged without breaking a bashrc
This commit is contained in:
Dustin Kirkland 2013-08-05 08:54:22 +01:00
commit c86b19813b
3 changed files with 5 additions and 2 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
byobu (5.52) unreleased; urgency=low
* UNRELEASED
* usr/bin/byobu-janitor:
- ensure byobu can be purged without breaking a bashrc
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 05 Aug 2013 08:38:30 +0100

View file

@ -117,6 +117,6 @@ rm -f "$FLAG" "/var/run/screen/S-$USER/$PKG.reload-required"
if ! (grep -qs "#byobu-prompt#$" "$HOME/.bashrc") && ! [ -e "$BYOBU_CONFIG_DIR/prompt" ]; then
printf "[ -r $BYOBU_CONFIG_DIR/prompt ] && . $BYOBU_CONFIG_DIR/prompt #byobu-prompt#\n" >> "$HOME/.bashrc"
fi
[ -r "$BYOBU_CONFIG_DIR/prompt" ] || echo ". ${BYOBU_PREFIX}/share/${PKG}/profiles/bashrc #byobu-prompt#\n" > "$BYOBU_CONFIG_DIR/prompt"
[ -r "$BYOBU_CONFIG_DIR/prompt" ] || echo "[ -r ${BYOBU_PREFIX}/share/${PKG}/profiles/bashrc ] && . ${BYOBU_PREFIX}/share/${PKG}/profiles/bashrc #byobu-prompt#\n" > "$BYOBU_CONFIG_DIR/prompt"
# vi: syntax=sh ts=4 noexpandtab

View file

@ -10,6 +10,8 @@ byobu-enable-prompt, byobu-disable-prompt \- add and remove a nice color prompt
.SH DESCRIPTION
\fBbyobu-enable-prompt\fP will add one line to your \fI~/.bashrc\fP.
You can safely remove the line from your \fI~/.bashrc\fP, which ends in \fB#byobu-prompt\fP.
\fBbyobu-disable-prompt\fP will remove its color configuration from \fI~/.bashrc\fP.
.SH "BUGS"