mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* 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:
parent
dcbb42dc99
commit
19b36fd7b5
3 changed files with 22 additions and 5 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
echo
|
if [ "$BYOBU_BACKEND" = "tmux" ]; then
|
||||||
echo "You will need to reload your shell configuration for this to take effect..."
|
tmux send-keys ". ~/.bashrc" \; send-keys Enter
|
||||||
echo " . ~/.bashrc"
|
else
|
||||||
echo
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue