use ubuntu themed colors for the prompt if running on

Ubuntu
This commit is contained in:
Dustin Kirkland 2013-08-02 17:01:46 -05:00
commit a9a74b1c0f
2 changed files with 14 additions and 3 deletions

4
debian/changelog vendored
View file

@ -7,8 +7,8 @@ byobu (5.50) unreleased; urgency=low
* 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: * usr/bin/byobu-disable-prompt, usr/bin/byobu-enable-prompt:
- use ubuntu themed colors for the prompt; might need to - use ubuntu themed colors for the prompt if running on
ship themes for other distros? Ubuntu
-- 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

@ -23,10 +23,21 @@ PKG="byobu"
. "${BYOBU_PREFIX}/lib/${PKG}/include/common" . "${BYOBU_PREFIX}/lib/${PKG}/include/common"
byobu-disable-prompt || true byobu-disable-prompt || true
cat >>"$HOME/.bashrc" <<EOF DISTRO=$(lsb_release -s -d)
case $DISTRO in
Ubuntu*)
cat >>"$HOME/.bashrc" <<EOF
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# 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
;;
*)
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#
export TERM="xterm-256color" #byobu-prompt#
EOF
;;
esac
if [ "$BYOBU_BACKEND" = "tmux" ]; then if [ "$BYOBU_BACKEND" = "tmux" ]; then
tmux send-keys ". ~/.bashrc" \; send-keys Enter tmux send-keys ". ~/.bashrc" \; send-keys Enter