Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term_supports_color() {
- if test "$COLORTERM" = truecolor; then
- return 0
- fi
- case "$TERM" in
- *-color*|*-16color*|*-256color*|*-direct|linux|foot)
- return 0 ;;
- '')
- return 1 ;;
- esac
- if command -v tput >/dev/null && test "$(tput colors)" -ge 8; then
- return 0
- fi
- return 1
- }
- if term_supports_color; then
- export LS_COLORS='rs=0:ex=1;32:di=1;34:ln=31:pi=33:so=1;35:bd=1;36:cd=1;33:su=1;31:sg=1;31:*akefile=1;33'
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement