terminal tool colours

This commit is contained in:
2026-02-24 20:00:53 +00:00
parent e8165041d9
commit faad821c77
7 changed files with 139 additions and 33 deletions

View File

@@ -12,6 +12,22 @@ export VISUAL=vim
export PAGER=less
export BAT_THEME=dots
# Man pages via bat for syntax highlighting
export MANPAGER="sh -c 'col -bx | sed -e \"s/\x1b\[[0-9;]*m//g\" | bat -l man -p'"
# Less colours for bold/underline (man pages fallback)
export LESS="-R --mouse"
export LESS_TERMCAP_mb=$'\e[1;38;2;248;140;20m'
export LESS_TERMCAP_md=$'\e[1;38;2;64;104;212m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_so=$'\e[38;2;26;26;26;48;2;44;180;148m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_us=$'\e[4;38;2;44;180;148m'
export LESS_TERMCAP_ue=$'\e[0m'
# Use bat as a colourised pager for less
export LESSOPEN="| bat --color=always --style=plain %s 2>/dev/null"
# Homebrew
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_ENV_HINTS=1