* 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?
This commit is contained in:
Dustin Kirkland 2013-08-02 16:54:43 -05:00
commit 19b36fd7b5
3 changed files with 22 additions and 5 deletions

3
debian/changelog vendored
View file

@ -6,6 +6,9 @@ byobu (5.50) unreleased; urgency=low
- the @ symbol in the color prompt was hard to read - the @ symbol in the color prompt was hard to read
* usr/bin/byobu-disable-prompt: * usr/bin/byobu-disable-prompt:
- clean up all byobu-prompt lines - 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 <kirkland@ubuntu.com> Sun, 28 Jul 2013 19:51:39 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Sun, 28 Jul 2013 19:51:39 -0500

View file

@ -24,4 +24,14 @@ PKG="byobu"
$BYOBU_SED -i -e "/#byobu-prompt#$/d" "$HOME/.bashrc" $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 # vi: syntax=sh ts=4 noexpandtab

View file

@ -24,13 +24,17 @@ PKG="byobu"
byobu-disable-prompt || true byobu-disable-prompt || true
cat >>"$HOME/.bashrc" <<EOF cat >>"$HOME/.bashrc" <<EOF
PS1="${debian_chroot:+($debian_chroot)}\[\e[00;31m\]\u\[\e[00m\]@\[\e[00;36m\]\h\[\e[00m\]:\[\e[00;32m\]\w\[\e[00m\]\$ " #byobu-prompt# PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;5m\]\h\[\e[00m\]:\[\e[38;5;172m\]\w\[\e[00m\]❭ " #byobu-prompt#
export TERM="xterm-256color" #byobu-prompt# export TERM="xterm-256color" #byobu-prompt#
EOF EOF
if [ "$BYOBU_BACKEND" = "tmux" ]; then
tmux send-keys ". ~/.bashrc" \; send-keys Enter
else
echo echo
echo "You will need to reload your shell configuration for this to take effect..." echo "You will need to reload your shell configuration for this to take effect..."
echo " . ~/.bashrc" echo " . ~/.bashrc"
echo echo
fi
# vi: syntax=sh ts=4 noexpandtab # vi: syntax=sh ts=4 noexpandtab