From 8e2383e643ae1c91513a5f0f9fd5f6699ff88b4f Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Mon, 1 Jun 2026 18:46:18 +0100 Subject: Fixed issue with less options not working --- .kshrc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to '.kshrc') diff --git a/.kshrc b/.kshrc index 4139e54..d38c506 100644 --- a/.kshrc +++ b/.kshrc @@ -46,20 +46,19 @@ __get_current_git_branch_name() { # Pager if _exists less; then - PAGER=less - LESSHISTFILE=- -# # -I ignore case -# # -R colored output -# # -X don't clear on exit -# # -Ps string prompt - # LESS='-IRXPs %lt-%lb (%Pt-%Pb \%) ░ %bt-%bbb ░ %f ░▒▓' - LESS='-IRX' - export PAGER LESSHISTFILE LESS + PAGER=less + LESSHISTFILE=- + # -I ignore case + # -R colored output + # -X don't clear on exit + # -Ps string prompt + alias less='less -IrX' + export PAGER LESSHISTFILE LESS fi # Colored man pages man() { - sh -c "man '$@' | col -bx | bat -l man" + sh -c "man '$@' | col -bx | bat -l man" } # Set prompt: ``username@hostname directory $ '' -- cgit v1.3