mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-24 07:06:19 -07:00
* usr/share/byobu/profiles/bashrc:
- prepend previous command's exit status on the fancy Byobu prompt; thanks for the wonderful idea, Martin Pitt!
This commit is contained in:
parent
6b1b407f24
commit
6c69861661
2 changed files with 6 additions and 3 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -19,6 +19,9 @@ byobu (5.59) unreleased; urgency=low
|
||||||
keys.tmux, usr/share/byobu/keybindings/f-keys.tmux.disable,
|
keys.tmux, usr/share/byobu/keybindings/f-keys.tmux.disable,
|
||||||
usr/share/doc/byobu/help.tmux.txt:
|
usr/share/doc/byobu/help.tmux.txt:
|
||||||
- add a new keybiding, Alt-F5, to toggle UTF-8 on and off
|
- add a new keybiding, Alt-F5, to toggle UTF-8 on and off
|
||||||
|
* usr/share/byobu/profiles/bashrc:
|
||||||
|
- prepend previous command's exit status on the fancy Byobu
|
||||||
|
prompt; thanks for the wonderful idea, Martin Pitt!
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 12 Sep 2013 10:53:27 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 12 Sep 2013 10:53:27 -0500
|
||||||
|
|
||||||
|
|
|
@ -32,17 +32,17 @@ if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then
|
||||||
case "$BYOBU_CHARMAP" in
|
case "$BYOBU_CHARMAP" in
|
||||||
"UTF-8")
|
"UTF-8")
|
||||||
# MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET (U+27EB, Pe): ⟫
|
# MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET (U+27EB, Pe): ⟫
|
||||||
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\]⟫ "
|
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$? \[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;5m\]\h\[\e[00m\]:\[\e[38;5;172m\]\w\[\e[00m\]⟫ "
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Simple ASCII greater-than sign
|
# Simple ASCII greater-than sign
|
||||||
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\]> "
|
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$? \[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;5m\]\h\[\e[00m\]:\[\e[38;5;172m\]\w\[\e[00m\]> "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Use Byobu colors (green / blue / red)
|
# Use Byobu colors (green / blue / red)
|
||||||
PS1="${debian_chroot:+($debian_chroot)}\[\e[00;32m\]\u\[\e[00m\]@\[\e[00;36m\]\h\[\e[00m\]:\[\e[00;31m\]\w\[\e[00m\]\$ "
|
PS1="${debian_chroot:+($debian_chroot)}\[\e[31m\]\$? \[\e[00;32m\]\u\[\e[00m\]@\[\e[00;36m\]\h\[\e[00m\]:\[\e[00;31m\]\w\[\e[00m\]\$ "
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue