mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
b39e66dce51adbe2ccef98dbd7e321c6c2e6b835
This revision brings two changes to the 10-gentoo-color.bash drop-in. Firstly, try to match the value of TERM against the whitelist of terminals known to support colour, only employing tput(1) as a last resort. Given that the list is now a well-curated one, it makes sense to try to forgo the expense of executing an external utility. Secondly, micro-optimise the method by which readline support is detected. It is ever so slightly faster to run ( ! shopt -u direxpand ) as opposed to [[ ! $(shopt -p direxpand) ]]. Signed-off-by: Kerin Millar <kfm@plushkava.net> Signed-off-by: Sam James <sam@gentoo.org>
…
…
…
…
Description
No description provided
9.8 GiB
Languages
Shell
98%
Roff
1.3%
Emacs Lisp
0.2%
C
0.1%