mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 18:57:20 -07:00
support ash for colorized prompt
This commit is contained in:
parent
18467fff88
commit
ad32052231
2 changed files with 5 additions and 3 deletions
|
@ -24,8 +24,8 @@ case "$TERM" in
|
|||
;;
|
||||
esac
|
||||
if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then
|
||||
# Ensure that we're in bash, in a byobu environment
|
||||
if [ -n "$BYOBU_BACKEND" ] && [ -n "$BASH" ]; then
|
||||
# Ensure that we're in bash or ash, in a byobu environment
|
||||
if [ -n "$BYOBU_BACKEND" ] && [ -n "$BASH" ] || [ "$SHELL" = "/bin/ash" ]; then
|
||||
byobu_prompt_status() { local e=$?; [ $e != 0 ] && echo -e " $e "; }
|
||||
[ -n "$BYOBU_CHARMAP" ] || BYOBU_CHARMAP=$(locale charmap 2>/dev/null || echo)
|
||||
byobu_prompt_symbol() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue