mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
use ubuntu themed colors for the prompt if running on
Ubuntu
This commit is contained in:
parent
19b36fd7b5
commit
a9a74b1c0f
2 changed files with 14 additions and 3 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -7,8 +7,8 @@ byobu (5.50) unreleased; urgency=low
|
|||
* 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?
|
||||
- use ubuntu themed colors for the prompt if running on
|
||||
Ubuntu
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 28 Jul 2013 19:51:39 -0500
|
||||
|
||||
|
|
|
@ -23,10 +23,21 @@ PKG="byobu"
|
|||
. "${BYOBU_PREFIX}/lib/${PKG}/include/common"
|
||||
|
||||
byobu-disable-prompt || true
|
||||
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#
|
||||
export TERM="xterm-256color" #byobu-prompt#
|
||||
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
|
||||
tmux send-keys ". ~/.bashrc" \; send-keys Enter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue