mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
* usr/bin/byobu-janitor:
- enable users to remove the line from their ~/.bashrc
This commit is contained in:
parent
87c30f5d37
commit
9ed6bc3e51
2 changed files with 8 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -15,6 +15,8 @@ byobu (5.51) unreleased; urgency=low
|
|||
- fix a bash error
|
||||
* usr/bin/byobu-enable-prompt, usr/bin/byobu-janitor:
|
||||
- enable the new byobu colored prompt by default, on new logins
|
||||
* usr/bin/byobu-janitor:
|
||||
- enable users to remove the line from their ~/.bashrc
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 02 Aug 2013 17:30:11 -0500
|
||||
|
||||
|
|
|
@ -72,7 +72,6 @@ MC=0
|
|||
[ -r "$BYOBU_CONFIG_DIR/profile.tmux" ] || echo "source \$BYOBU_PREFIX/share/$PKG/profiles/tmux" > "$BYOBU_CONFIG_DIR/profile.tmux"
|
||||
[ -r "$BYOBU_CONFIG_DIR/keybindings" ] || echo "source \$BYOBU_PREFIX/share/$PKG/keybindings/common" > "$BYOBU_CONFIG_DIR/keybindings"
|
||||
[ -r "$BYOBU_CONFIG_DIR/keybindings.tmux" ] || touch "$BYOBU_CONFIG_DIR/keybindings.tmux"
|
||||
[ -r "$BYOBU_CONFIG_DIR/prompt" ] || echo ". ${BYOBU_PREFIX}/share/${PKG}/profiles/bashrc #byobu-prompt#\n" > "$BYOBU_CONFIG_DIR/prompt"
|
||||
[ -r "$BYOBU_CONFIG_DIR/windows" ] || touch "$BYOBU_CONFIG_DIR/windows"
|
||||
[ -r "$BYOBU_CONFIG_DIR/backend" ] || echo "BYOBU_BACKEND=$BYOBU_BACKEND" > "$BYOBU_CONFIG_DIR/backend"
|
||||
[ -r "$HOME/.screenrc" ] || touch "$HOME/.screenrc"
|
||||
|
@ -114,4 +113,10 @@ killall -u $USER byobu-statusd >/dev/null 2>&1 || true
|
|||
# Clean up flag (new and old)
|
||||
rm -f "$FLAG" "/var/run/screen/S-$USER/$PKG.reload-required"
|
||||
|
||||
# Affects: Upgrades from <= byobu 5.50, install byobu prompt
|
||||
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"
|
||||
|
||||
# vi: syntax=sh ts=4 noexpandtab
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue