From 19b36fd7b5eacf4262c3023f11c91c2a5513971d Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 2 Aug 2013 16:54:43 -0500 Subject: [PATCH] * usr/bin/byobu-disable-prompt, usr/bin/byobu-enable-prompt: - use ubuntu themed colors for the prompt; might need to ship themes for other distros? --- debian/changelog | 3 +++ usr/bin/byobu-disable-prompt | 10 ++++++++++ usr/bin/byobu-enable-prompt | 14 +++++++++----- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 12ca1c1c..5e837ed9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,9 @@ byobu (5.50) unreleased; urgency=low - the @ symbol in the color prompt was hard to read * usr/bin/byobu-disable-prompt: - clean up all byobu-prompt lines + * usr/bin/byobu-disable-prompt, usr/bin/byobu-enable-prompt: + - use ubuntu themed colors for the prompt; might need to + ship themes for other distros? -- Dustin Kirkland Sun, 28 Jul 2013 19:51:39 -0500 diff --git a/usr/bin/byobu-disable-prompt b/usr/bin/byobu-disable-prompt index 70493ce6..f39330ac 100755 --- a/usr/bin/byobu-disable-prompt +++ b/usr/bin/byobu-disable-prompt @@ -24,4 +24,14 @@ PKG="byobu" $BYOBU_SED -i -e "/#byobu-prompt#$/d" "$HOME/.bashrc" +if [ "$BYOBU_BACKEND" = "tmux" ]; then + tmux send-keys ". ~/.bashrc" \; send-keys Enter +else + echo + echo "You will need to reload your shell configuration for this to take effect..." + echo " . ~/.bashrc" + echo +fi + +# vi: syntax=sh ts=4 noexpandtab # vi: syntax=sh ts=4 noexpandtab diff --git a/usr/bin/byobu-enable-prompt b/usr/bin/byobu-enable-prompt index 93bf85cc..9cd59662 100755 --- a/usr/bin/byobu-enable-prompt +++ b/usr/bin/byobu-enable-prompt @@ -24,13 +24,17 @@ PKG="byobu" byobu-disable-prompt || true cat >>"$HOME/.bashrc" <