From d46c945d9aa4d0ca0e2057c1271ad8de0a8db2b9 Mon Sep 17 00:00:00 2001 From: cswimr Date: Thu, 14 Nov 2024 13:18:33 -0500 Subject: [PATCH] configured less syntax highlighting --- .zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 7dd7772..bc68a9b 100644 --- a/.zshrc +++ b/.zshrc @@ -108,13 +108,17 @@ source $ZSH/oh-my-zsh.sh # User configuration +if (( $+commands[src-hilite-lesspipe.sh] )); then + export PAGER="less" + export LESSOPEN="| src-hilite-lesspipe.sh %s" + export LESS=' -R ' +fi + # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment export LANG=en_US.UTF-8 - - # n³ settings export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$" export NNN_PLUG='l:!lazygit*;d:!lazydocker*'