Skip to content

less command does not show text in colors #57

@nippyin

Description

@nippyin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions