mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
usr/lib/byobu/custom: save a fork
This commit is contained in:
parent
fba874aa20
commit
c4865187b5
2 changed files with 11 additions and 8 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,6 +1,6 @@
|
||||||
byobu (2.81) unreleased; urgency=low
|
byobu (2.81) unreleased; urgency=low
|
||||||
|
|
||||||
* UNRELEASED
|
* usr/lib/byobu/custom: save a fork
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 16 Jun 2010 12:46:29 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 16 Jun 2010 12:46:29 -0500
|
||||||
|
|
||||||
|
|
|
@ -38,11 +38,14 @@ for i in "$HOME"/.$PKG/bin/[0-9]*_*; do
|
||||||
$i $@ > "$CACHE.$script" 2>/dev/null
|
$i $@ > "$CACHE.$script" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
output=$(cat "$CACHE.$script")
|
output=$(cat "$CACHE.$script")
|
||||||
if echo "$output" | grep -qs "$ESC{"; then
|
case "$output" in
|
||||||
|
*"$ESC{"*)
|
||||||
# User has formatted the colors
|
# User has formatted the colors
|
||||||
printf "$output"
|
printf "$output"
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
# Default to inverted coloring
|
# Default to inverted coloring
|
||||||
printf "$(color invert)$output$(color -) "
|
printf "$(color invert)$output$(color -) "
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue