From c257c004237ee1e69182e59508486d55ea5a15fb Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 2 Aug 2025 16:28:35 +0100 Subject: Uncomment paging=never in bat and added the man function for colored man pages in .kshrc --- .config/bat/config | 2 +- .kshrc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/bat/config b/.config/bat/config index bc2ec99..ef4ec0c 100755 --- a/.config/bat/config +++ b/.config/bat/config @@ -12,7 +12,7 @@ #--italic-text=always # Uncomment the following line to disable automatic paging: ---paging=never +# --paging=never # Uncomment the following line if you are using less version >= 551 and want to # enable mouse scrolling support in `bat` when running inside tmux. This might diff --git a/.kshrc b/.kshrc index 5fade12..47fc7a6 100644 --- a/.kshrc +++ b/.kshrc @@ -39,6 +39,11 @@ __get_current_git_branch_name() { echo -en " $branch_name" } +# Colored man pages +man() { + sh -c "man '$@' | col -bx | bat -l man" +} + # Set prompt: ``username@hostname directory $ '' PS1="\[\e[1;32m\]\u@\h \[\e[1;34m\]\w\[\e[0m\] \[\e[1;31m\]\$(__get_current_git_branch_name)\[\e[0m\] $ " -- cgit v1.2.3