rwxrob / dot

Migrating to z Bonzai stateful command tree monolith
https://github.com/rwxrob/z
Apache License 2.0
242 stars 38 forks source link

less command does not show text in colors #57

Open nippyin opened 2 years ago

nippyin commented 2 years ago

Added following in my .bashrc. But when i do less ~/.bashrc i do not see any color text.

export LESS_TERMCAP_mb="[34mESC[35m" # magenta export LESS_TERMCAP_md="[34mESC[33m" # yellow export LESS_TERMCAP_me="" # "[34mESC0m" export LESS_TERMCAP_se="" # "[34mESC0m" export LESS_TERMCAP_so="[34mESC[34m" # blue export LESS_TERMCAP_ue="" # "[34mESC0m" export LESS_TERMCAP_us="[34mESC[4m" # underline

------------------------------- pager ------------------------------

if [[ -x /usr/bin/lesspipe ]]; then export LESSOPEN="| /usr/bin/lesspipe %s"; export LESSCLOSE="/usr/bin/lesspipe %s %s"; fi